![](https://img-blog.csdnimg.cn/20201126103545148.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Kubernetes
kubernetes
He Yanbo
这个作者很懒,什么都没留下…
展开
-
kubectl根据pod状态进行批量删除
命令kubectl get pods -A |grep ${errorStatus} |awk '{printf("kubectl delete pods %s -n %s\n", $2,$1)}' | /bin/bash示例1kubectl get pods -A |grep UnexpectedAdmissionError |awk '{printf("kubectl delete pods %s -n %s\n", $2,$1)}' | /bin/bash示例2kubectl.原创 2021-09-28 11:13:50 · 1325 阅读 · 0 评论 -
kubeadm 重置集群后遇到x509问题
kubeadm重置集群重置集群命令[root@master-node ~]# kubeadm reset -f[reset] Reading configuration from the cluster...[reset] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'W1125 15:31:28.439103 2709 reset.go:73]原创 2020-11-25 16:58:41 · 1842 阅读 · 0 评论