Hackerss.com

Cover image for Delete a Pod on Kubernetes - Terminating Status
Manuel Montero
Manuel Montero

Posted on • Updated on

Delete a Pod on Kubernetes - Terminating Status

To delete a pod in Kubernetes that is in terminating status first you can try the following command:

kubectl delete pods <pod>
Enter fullscreen mode Exit fullscreen mode

This will try to gracefully terminate the pod, if something happens and it cannot terminate you can use this next command:

kubectl delete pods <pod> --grace-period=0 --force
Enter fullscreen mode Exit fullscreen mode

Top comments (0)