3 台 PC
10.0.0.11 master 已 Ready 10.0.0.12 node1 已 Ready 10.0.0.13 node2 NotReady
奇怪的是 node1 和 node2 安装完全,从同一文档复制粘贴来的,后来又重装了一次也是一样的问题,在 join 以后 node2 上查看 systemctl status kubelet -服务信息,报错为:
Jul 18 15:53:33 node2 kubelet[22013]: W0718 15:53:33.975695 22013 cni.go:213] Unable to update cni config: No networks found in /etc/cni/net.d Jul 18 15:53:38 node2 kubelet[22013]: W0718 15:53:38.976010 22013 cni.go:213] Unable to update cni config: No networks found in /etc/cni/net.d Jul 18 15:53:43 node2 kubelet[22013]: W0718 15:53:43.976326 22013 cni.go:213] Unable to update cni config: No networks found in /etc/cni/net.d
请求大神给与指导,该如何排错
1
hzfyjgw 2019-07-18 15:11:25 +08:00
node 上的 cni 网络组件没准备好
|
2
cctvnews OP [root@node2 kubernetes]# rpm -qa | grep cni
kubernetes-cni-0.7.5-0.x86_64 这个组件是安装的了,应该无需手动配置才对 |
3
hzfyjgw 2019-07-18 16:06:18 +08:00
No networks found in /etc/cni/net.d
正常的应该是这样的 ··· root@k8s-master-1:~# ls /etc/cni/net.d/ 10-flannel.conflist root@k8s-master-1:~# ll /etc/cni/net.d/ total 12 drwxr-xr-x 2 root root 4096 Jul 10 03:14 ./ drwxr-xr-x 3 root root 4096 Feb 23 10:38 ../ -rw-r--r-- 1 root root 267 Jul 10 03:14 10-flannel.conflist root@k8s-master-1:~# cat /etc/cni/net.d/10-flannel.conflist { "name": "cbr0", "plugins": [ { "type": "flannel", "delegate": { "hairpinMode": true, "isDefaultGateway": true } }, { "type": "portmap", "capabilities": { "portMappings": true } } ] } ··· |
4
cctvnews OP 我把 flannel 换用 waeve 组件就好了
|