Kubernetes Service EndpointSlice removal races with pod termination during rolling updates
Goal Complete a zero-downtime Deployment rollout without sending new connections to pods that have started termination. Constraints Kubernetes 1.20 and later defaults terminationGracePeriodSeconds to 30 seconds. The kubelet begins pod termination while the EndpointSlice controller removes the pod address asynchronously, so no ordering guarantee exists betwee