What happens to traffic during a rolling update and how do you keep it smooth?
IntermediateProductionKubernetes & Service Networking in Production
Answer
New pods start, pass readiness, join endpoints; old pods get SIGTERM after being removed from endpoints. Set maxUnavailable: 0 and maxSurge: 25%, a PodDisruptionBudget, correct probes, preStop delay, and enough capacity so no pods go missing.
Cluster autoscaler and node drains similarly respect PDBs; unlimited eviction causes brief outages.
More on Kubernetes & Service Networking in Production
How do you expose an application on Kubernetes to the internet in production?BeginnerALB IP mode versus instance mode on EKS: which should you use?IntermediateHow do you achieve graceful pod shutdown with no dropped requests?AdvancedHow do readiness, liveness and startup probes interact with traffic?BeginnerHow do you design default-deny NetworkPolicies without breaking DNS?IntermediateHow do you debug "pod cannot reach service" in Kubernetes?Advanced