强制删除 Terminating 状态的pod

≡放荡痞女 提交于 2019-12-27 04:13:35

[root@k8s-master coredns]# kubectl get pod
NAME                     READY   STATUS        RESTARTS   AGE
nginx-7bb7cd8db5-5c7z9   1/1     Terminating   0          70m
nginx-7bb7cd8db5-t24hf   1/1     Running       0          57m


[root@k8s-master coredns]# kubectl delete pod nginx-7bb7cd8db5-5c7z9 --grace-period=0 --force

warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
pod "nginx-7bb7cd8db5-5c7z9" force deleted


[root@k8s-master coredns]# kubectl get pod
NAME                     READY   STATUS    RESTARTS   AGE
nginx-7bb7cd8db5-t24hf   1/1     Running   0          60m


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!