Hackerss.com

Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in
Cover image for Delete a Pod on Kubernetes - Terminating Status
MaxX
MaxX

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

Discussion (0)