Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Forcefully Delete Kubernetes Pod
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- A pod is stuck in terminating state as per the Kubectl output.
- Deletion of pod fails even after running the command.
xxxxxxxxxx$ kubectl delete pod [pod_name] -n [namespace] --grace-period 0Environment
- Platform9 Managed Kubernetes - All Versions
Procedure
- Verify that the container(s) associated with the pod isn't running on the node. This can be verified by identifying the container and the node name using the command below.
xxxxxxxxxx$ kubectl describe pod [pod_name] -n [namespace]- SSH into the node and verify that that the container associated isn't running by running the following command.
- See this article for more details on containerd commands.
docker
containerd
xxxxxxxxxx$ docker ps- Once it's verified that the container isn't present, run the following command to delete the pod forcefully.
xxxxxxxxxx$ kubectl delete pod [pod_name] -n [namespace] --grace-period 0 --forceVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Configure BASH Autocomplete for Kubectl CLI on MacOS XDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message