advancedSpring Boot on Kubernetes: Health Probes, Config, Scaling & Observability
Rolling deployment causes 502 errors even with graceful shutdown configured
Check the relationship between terminationGracePeriodSeconds, the graceful shutdown timeout, and how quickly the load balancer removes the Pod from its backend pool. If the LB continues routing to a Pod that has already stopped accepting requests, 502s result. Also check readiness probe removal speed -- the EndpointSlice controller removes the Pod from Service endpoints after readiness fails, but there may be a propagation delay.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
Rolling deployment causes 502 errors even with graceful shutdown configured