kubernetes删除pod,pod一直处于Terminating状态
- 删除pod,pod一直处于Terminating状态
[root@yxz-cluster01 deploy_yaml]# kubectl get pod -n yunanbao
NAME READY STATUS RESTARTS AGE
yxz-script-77974f5dc8-5qw9v 0/1 Terminating 5 40m
- 解决办法
强制删除:
kubectl delete pod [pod name] --force --grace-period=0 -n [namespace]