Interview Prep/Kubernetes/Reliability & Rollouts

Why do rollouts sometimes cause brief 502/503 errors?

BeginnerProductionReliability & Rollouts
Answer

New Pods can receive traffic before they are truly ready (weak readiness probe), and terminating Pods can still get requests because kube-proxy, the Ingress/ALB and the Pod shutdown race. Fix with a correct readiness probe, preStop delay, connection draining on the LB, and maxUnavailable: 0.

All Kubernetes questions

More on Reliability & Rollouts