Pod is Stuck in the Terminating State

Problem

A pod is stuck in the Terminating state after you try to delete it.

Environment

  • Platform9 Managed Kubernetes - v4.0 and Higher

Answer

You must manually delete the pod. Run the following command:

kubectl -n <namespace> delete pods --grace-period=0 --force <pod_name>

Additional Information

For more information about kubectl CLI, see kubectl-commands.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard