About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A pod whose STATUS stays at Terminating after kubectl delete pod is in one of four states: it is still inside its grace period (30 seconds by default), a finalizer on it is not being removed, its node cannot report back, or the kubelet or container runtime restarted and the wait began again. Read the pod and its node before forcing anything. For the two last-resort commands, force deletion and finalizer removal, the pages give no way to undo them, and Kubernetes's own pages warn against both.
What the symptom means
Terminating is a display value. The Pod Lifecycle page says that when a pod is being deleted, "Terminating may appear in the Status field of some kubectl commands", and that this field must not be confused with the pod's phase.
The Termination of Pods page describes the normal flow. A delete records a time after which the pod is considered dead, along with the grace period; terminationGracePeriodSeconds defaults to 30 seconds. The kubelet runs any preStop hook, then the container runtime sends TERM to process 1 in each container. When the grace period expires, the runtime sends SIGKILL, the kubelet moves the pod to a terminal phase, and the pod object is removed from the API server.
Three documented things stop that flow:
- A
preStophook still running after the grace period gets "a small, one-off grace period extension of 2 seconds". The page says that a hook needing longer means changingterminationGracePeriodSeconds. - A restart of the kubelet or the runtime's management service resets the wait: "the cluster retries from the start including the full original grace period."
- A finalizer keeps the object. The Finalizers page says that after a delete the object stays in a terminating state, with
.metadata.deletionTimestampset, until itsmetadata.finalizersfield is empty. The Debug Pods page adds that a pod is "stuck in the Terminating state" when "the control plane is unable to delete the Pod object", typically because of a finalizer plus an admission webhook that prevents its removal.
The Force Delete StatefulSet Pods page covers the node case: "A Pod is not deleted automatically when a node is unreachable." Such pods "enter the 'Terminating' or 'Unknown' state after a timeout".
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
Still inside the grace period, or a slow preStop hook |
Terminating for no longer than the grace period |
metadata.deletionTimestamp is recent; spec.terminationGracePeriodSeconds is larger than the time elapsed; metadata.finalizers is absent |
| A finalizer that nothing removes | Terminating long after the grace period, on a Ready node |
metadata.finalizers lists entries; a webhook rule targets UPDATE on pods |
| The node is unreachable | Terminating or Unknown; the node is NotReady |
kubectl get nodes shows the pod's node as NotReady |
| The kubelet or runtime restarted mid-shutdown | The wait runs again in full | The node was restarted or its kubelet restarted after the delete |
Prove the cause before changing anything
These steps only read.
- Check for admission webhooks first. The Debug Pods page says to look for any
ValidatingWebhookConfigurationorMutatingWebhookConfigurationthat targetsUPDATEoperations forpods:
kubectl get validatingwebhookconfigurations -o yaml
kubectl get mutatingwebhookconfigurations -o yaml
In each rule, read operations and resources. A rule listing UPDATE and pods is a candidate.
- Read the pod and the node it sits on:
kubectl get pod web-0 -n shop -o wide
kubectl get pod web-0 -n shop -o yaml
In the YAML, read metadata.deletionTimestamp, metadata.finalizers and spec.terminationGracePeriodSeconds.
- Read the node's state:
kubectl get nodes
A good result for a plain slow shutdown is a recent deletionTimestamp, no finalizers and a Ready node. A bad result is a finalizer entry that stays, or the pod's node reported NotReady.
Fix
Inside the grace period. Wait. The kubelet sends the final kill when the grace period ends. If a preStop hook needs longer, the Termination of Pods page says "you must modify terminationGracePeriodSeconds to suit this". The field is part of the workload's pod template, so changing it is a guarded step of its own (see "Raise the grace period" below).
A finalizer with a webhook. The Debug Pods page lists these remedies: use the latest version of a third-party webhook, disable the webhook for UPDATE operations, and report the fault to its provider. For a webhook you wrote, a mutating webhook must not change immutable fields on UPDATE, and a validating webhook should let pods with existing violations pass. These are changes to cluster policy for the webhook's owner to make.
An unreachable node. The Force Delete StatefulSet Pods page recommends two approaches before force deletion: delete the Node object once the node is confirmed dead (powered off, permanently disconnected; the page lists this as one way a pod in that state is removed from the API server, and gives no way to undo it), or resolve a network partition and let the kubelet complete the deletion. When the partition heals, "the kubelet will complete the deletion of the Pod".
Example (illustrative): the StatefulSet pod web-0 in namespace shop shows Terminating for 25 minutes after a delete. kubectl get pod web-0 -n shop -o wide names the node k8s-node2, and kubectl get nodes shows k8s-node2 as NotReady. The pod's YAML has a deletionTimestamp and no finalizers. The cause is the unreachable node. The engineer finds a faulty switch port, restores the node's network, and within a few minutes the kubelet completes the deletion; the StatefulSet controller then creates a new web-0. No force deletion was needed.
Raise the grace period
This applies only when a slow preStop hook is the cause. The field belongs to the pod template of the owning workload (here the StatefulSet web), so the workload's owner makes the change. First save the current state:
kubectl get statefulset web -n shop -o yaml > web-statefulset-before.yaml
kubectl get statefulset web -n shop -o jsonpath='{.spec.template.spec.terminationGracePeriodSeconds}'
Note the printed value (called G below). The saved file may hold literal values, so keep it private.
Disruptive step: the next command changes the pod template of the StatefulSet web. A pod template change is expected to make the workload replace its pods with new ones that carry the new value, so each pod of web is stopped and recreated.
Set the new value (120 seconds in this illustration):
kubectl patch statefulset web -n shop --type merge -p '{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":120}}}}'
To undo it: set the saved value G back (replace G with the number noted above), then read the field again and compare the manifest with the saved file. Fields such as resourceVersion and generation will differ.
kubectl patch statefulset web -n shop --type merge -p '{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":G}}}}'
kubectl get statefulset web -n shop -o jsonpath='{.spec.template.spec.terminationGracePeriodSeconds}'
kubectl get statefulset web -n shop -o yaml
Last resort: remove the finalizers
The Finalizers page says: "avoid manually removing finalizers to allow deletion to continue", and that this "should only be done when the purpose of the finalizer is understood and is accomplished in another way". First select and show the exact object:
kubectl get pod web-0 -n shop -o yaml
Read the finalizers list and what each entry belongs to. First save the current state:
kubectl get pod web-0 -n shop -o yaml > web-0-before.yaml
Disruptive step: the next command removes every finalizer from the pod web-0. Because the pod already has a deletionTimestamp, the API server then deletes the pod object at once, as the Finalizers page describes the flow (deletion timestamp set, finalizers empty). The page gives no way to undo it: it says a new finalizer cannot be added once deletion has been requested, and the saved file is a record, not a way to bring the pod back.
The Force Delete StatefulSet Pods page gives this command for a pod that stays in the Unknown state after a force delete:
kubectl patch pod web-0 -n shop -p '{"metadata":{"finalizers":null}}'
Last resort: force delete
The kubectl delete reference says: "Force deleting pods does not wait for confirmation that the pod's processes have been terminated", which can leave those processes running. On a StatefulSet it can start a second pod with the same identity. The Force Delete StatefulSet Pods page says that "Having multiple members with the same identity can be disastrous and may lead to data loss". First select and show the exact pod and its node:
kubectl get pod web-0 -n shop -o wide
Continue only if the node is confirmed dead. First save the current state:
kubectl get pod web-0 -n shop -o yaml > web-0-before-force.yaml
Disruptive step: the next command deletes the pod web-0 from the API server without waiting for its node to confirm that the containers have stopped. The page gives no way to undo it: the name is freed at once, and a replacement may start while the old containers are still running on the unreachable node.
kubectl delete pod web-0 -n shop --grace-period=0 --force
Confirm the fix
kubectl get pod web-0 -n shopreports that the pod is not found, or, for a StatefulSet, shows a newweb-0with a recent age.- For the node case,
kubectl get nodesshows the node Ready again. - If the pod belonged to a Deployment or StatefulSet, the replacement reaches Ready. A replacement that cannot attach a volume is a different fault. See Kubernetes "Multi-Attach error for volume": "Volume is already used by pod(s)".
What to watch afterwards
- A
terminationGracePeriodSecondsvalue that matches how long the application really takes to shut down, and an application that handles TERM, avoid the slow-shutdown case. Changing the value is the guarded step "Raise the grace period" above. - Policy webhooks should let pods that already violate a rule continue to update and delete, as the Debug Pods page advises.
- A node that goes NotReady is the usual start of this fault. See Kubernetes node NotReady: "Kubelet stopped posting node status".
- Record which finalizers are normal in the cluster, so an unknown one stands out.
Read next
Related articles you may want next.
- TroubleshootingKubernetes node NotReady: "Kubelet stopped posting node status"Node NotReady with 'Kubelet stopped posting node status'? Check the kubelet, container runtime, API server path and certificate, then restart safely.Read article
- TroubleshootingKubernetes "Multi-Attach error for volume": "Volume is already used by pod(s)"Kubernetes 'Multi-Attach error for volume ... Volume is already used by pod(s)': find what holds the ReadWriteOnce volume and release it safely.Read article
- TroubleshootingKubernetes CreateContainerConfigError: secret "x" not found (or configmap "x" not found)CreateContainerConfigError: secret or configmap not found? Check the namespace, name and key, then create the object or fix the reference.Read article
Risks and limits
- These commands have not been run or lab-tested.
- The pages give no way to undo force deletion or finalizer removal. Use them only after the read-only steps show the cause, and only on an object whose purpose is understood.
- Kubernetes's pages on pod termination, finalizers and debugging give no procedure for namespaces stuck in Terminating, so none is given here.
- The Termination of Pods page was last modified on 6 June 2026. It gives no version range for older clusters.
Sources
- Pod Lifecycle — Kubernetes documentation, last modified 27 September 2026, accessed 2 December 2026
- Termination of Pods — Kubernetes documentation, last modified 6 June 2026, accessed 2 December 2026
- Finalizers — Kubernetes documentation, last modified 27 April 2025, accessed 2 December 2026
- Debug Pods — Kubernetes documentation, last modified 24 August 2026, accessed 2 December 2026
- Force Delete StatefulSet Pods — Kubernetes documentation, last modified 6 June 2026, accessed 2 December 2026
- kubectl delete — Kubernetes documentation, last modified 26 August 2026, accessed 2 December 2026
- kubectl get — Kubernetes documentation, last modified 26 August 2026, accessed 2 December 2026
- kubectl patch — Kubernetes documentation, last modified 26 August 2026, accessed 2 December 2026
This article was originally published on .