Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

ingress-nginx returns `503 Service Temporarily Unavailable` for one host while others work.

IntermediateTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → The Ingress rule matched, but the backend Service has no ready endpoints (pods crashing, failing readiness, selector mismatch), or the Ingress references a wrong Service name/port.

Diagnose →

kubectl describe ingress myapp | grep -A3 Backend
kubectl get endpointslices -l kubernetes.io/service-name=myapp
kubectl -n ingress-nginx logs deploy/ingress-nginx-controller | grep -i 'endpoints\|myapp' | tail

The controller logs Service "ns/myapp" does not have any active Endpoint in this case.

Fix → Fix the pods/readiness or the Service reference (name and port.number/port.name in the Ingress backend).

Prevent → Use PodDisruptionBudgets and rolling update settings so a deploy never takes all endpoints away at once.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures