强制删除 Terminating 状态的pod

[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

你可能感兴趣的:(强制删除 Terminating 状态的pod)