k8s force delete pod and namespace

Kubernetes forcefully deletes pods and namespaces that have been in the Terminating state

Force delete pod
kubectl get po -n NAMESPACE |grep Terminating
kubectl delete pod tomcat-deployment-7db86c59b7-9dbn7 -n dev --force --grace-period=0

Force delete namespace
[root@k8s-master ~/k8s_1.19_yaml]# kubectl delete ns aa --force --grace-period=0

Guess you like

Origin blog.csdn.net/weixin_44953658/article/details/115211599