ACTIVITY
Timeline
Timeline for the post: Kubernetes rolling update causes 503s: long preStop hook and readiness removal drop in-flight requests
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Oct 26, 2026, 9:23:15 AM 4w ago | Answer | feliciafix | CC BY-SA 4.0 | Make the pod stop receiving new traffic as soon as it begins shutdown. Modify the app to: on SIGTERM, immediately set readiness to false (or close the HTTP listener) and continue background cleanup; this tells kubelet/Ingress to remove the pod from rotation before preStop runs. Add a short readiness endpoint change and keep terminationGracePeriodSeconds long enough for cleanup. Verify by hitting the service with continuous requests and doing a rollout: healthy pods should accept traffic while the shutting pod finishes outstanding requests without 503s. Roll back by restoring previous signal handling if behavior is undesirable. |
Oct 26, 2026, 9:23:15 AM 4w ago | Solution accepted | selmascript | An answer was marked as the accepted solution. | |
Oct 26, 2026, 9:23:15 AM 4w ago | Created | selmascript | CC BY-SA 4.0 | Kubernetes rolling update causes 503s: long preStop hook and readiness removal drop in-flight requests |