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.
More on Reliability & Rollouts
What are the must-have settings for a production Deployment?BeginnerWhy use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerHow many replicas should you run and how do you spread them?BeginnerWhat should a readiness probe check?Beginner