What do you do about Pods stuck in Terminating?
IntermediateProductionReliability & Rollouts
Answer
Check finalizers, volume detach problems and a hung process or unreachable node. First kubectl describe and the node's state; fix the underlying cause. As a last resort force delete, understanding it only removes the API object, not necessarily the container.
kubectl delete pod web-0 --grace-period=0 --force
For StatefulSets, force deletion risks two Pods with the same identity if the node is merely partitioned.
More on Reliability & Rollouts
What are the must-have settings for a production Deployment?BeginnerWhy use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerWhy do rollouts sometimes cause brief 502/503 errors?BeginnerHow many replicas should you run and how do you spread them?Beginner