kubectl delete pod PODNAME –force –grace-period=0
kubectl deletenamespace NAMESPACENAME –force –grace-period=0
- 若以上方法无法删除,可使用第二种方法,直接从ETCD中删除源数据
ETCDCTL_API=3 etcdctl del /registry/pods/default/pod-to-be-deleted-0
etcdctl del /registry/namespaces/NAMESPACENAME
``` 参考文档: https://jimmysong.io/kubernetes-handbook/appendix/tricks.html