K8S ingress service became inaccessible with a "Secure Connection failed" error with the following setup:
In the Avi Web UI (Applications > Pools > Servers), the target pool displays a mixed health status, containing both healthy (green) and unhealthy (red/orange) pods.
Antrea agent logs reports missing POD IP address:
# kubectl -n kube-system logs antrea-agent-xxxxxx
I0918 13:26:09.700085 1 npl_controller.go:404] IP address not set for Pod: <NAMESPACE>/<POD_NAME>
The worker node iptables output has entries below: DNAT rule without endpoint POD IP address.
# iptables -t nat -S ANTREA-NODE-PORT-LOCAL
-A ANTREA-NODE-PORT-LOCAL -p tcp -m tcp --dport <port> -j DNAT --to-destination <MISSING POD IP>:<port>
NodePortLocal (NPL) rules missed the POD IP address after the Antrea Agent starts, hence traffic gets dropped at the worker node.
The issue was fixed in VKR 1.33.6/1.32.10 and also backported into VKR 1.31.14
The workarounds can be either of the following: