Interview Prep/Kubernetes/Pod startup failures

A sidecar-injected Pod never becomes Ready: `2/3 Running` and the app container logs `connection refused` to everything at startup.

AdvancedTroubleshootingPod startup failures
Answer

Likely causes → Startup ordering: the app starts before the proxy sidecar (Istio, Linkerd) is ready, and iptables already redirects its traffic to the proxy. It fails the first calls and exits or wedges.

Diagnose →

kubectl logs app-x -c app --previous | head
kubectl logs app-x -c istio-proxy | grep -i ready
kubectl get pod app-x -o jsonpath='{.spec.initContainers[*].name} | {.spec.containers[*].name}'

Fix → Use native sidecars (init container with restartPolicy: Always, stable since Kubernetes 1.33 and on by default from 1.29), which start and become ready before regular containers. For Istio set holdApplicationUntilProxyStarts: true. Also make the app retry outbound connections at startup.

Prevent → Standardise on native sidecars in the mesh config; never let an app die on its first failed dependency call.

All Kubernetes questions Roadmap: Kubernetes core

More on Pod startup failures