In some case, a pod can take a lot of time before being deleted.
So here is the Kubernetes command to force the deletion of a pod.
kubectl delete pod --grace-period=0 --force --namespace
example
kubectl delete pod nginx-0fec982 --grace-period=0 --force --namespace nginx
Links
- Kubernetes documentation : https://kubernetes.io/docs/tasks/run-application/force-delete-stateful-set-pod/
I hope it will help you! 🍺
Top comments (0)