13 min read · eliminate deployment 502s with graceful pod termination
Graceful shutdown in Kubernetes: PodDisruptionBudgets, PreStop hooks, and connection draining
Rolling updates and node drains still cause 502s when pods ignore SIGTERM. Combine application drain, PreStop delay for endpoint removal, PDBs for voluntary disruptions, and sidecar-aware termination so users never notice a rollout.
