3 Events
WhenWhatByLicenseComment
Oct 26, 2026, 9:23:15 AM
4w ago
AnswerfeliciafixCC BY-SA 4.0Make 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 acceptedselmascriptAn answer was marked as the accepted solution.
Oct 26, 2026, 9:23:15 AM
4w ago
CreatedselmascriptCC BY-SA 4.0Kubernetes rolling update causes 503s: long preStop hook and readiness removal drop in-flight requests