运维开发网

coreDNS一直处于创建中解决

运维开发网 https://www.qedev.com 2020-04-01 13:35 出处:网络 作者:运维开发网整理
https://blog.csdn.net/gsying1474/article/details/53256599 执行: [[email protected] coredns]# kubectl delete -f coredns.yaml 现象: [[email protected] k8s]# kubectl get pods -n kube-system NAME
https://blog.csdn.net/gsying1474/article/details/53256599


执行:

[[email protected] coredns]# kubectl delete -f coredns.yaml



现象:

[[email protected] k8s]# kubectl get pods -n kube-system
NAME                       READY     STATUS              RESTARTS   AGE
coredns-6c65fc5cbb-7xvzs   0/1       ContainerCreating   0          2m
coredns-6c65fc5cbb-kh4zg   0/1       ContainerCreating   0          2m



原因:

修改node名称后的遗留症状




查看pod日志,最后部分

[[email protected] k8s]# kubectl describe po coredns-6c65fc5cbb-7xvzs -n kube-system

"cni0" already has an IP address different from 10.244.5.1/24



解决:

所有节点执行如下:

rm -rf /var/lib/cni/flannel/* && rm -rf /var/lib/cni/networks/cbr0/* && ip link delete cni0
rm -rf /var/lib/cni/networks/cni0/*
0

精彩评论

暂无评论...
验证码 换一张
取 消