采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
[root@localhost Chapter4]# kubectl get nodes NAME STATUS ROLES AGE VERSION master Ready master 7h37m v1.19.3 node1 NotReady 14m v1.19.3
看看 node1 的日志呢
这是kubelet的日志: Oct 20 18:00:14 node1 kubelet[875]: "type": "portmap", Oct 20 18:00:14 node1 kubelet[875]: "capabilities": { Oct 20 18:00:14 node1 kubelet[875]: "portMappings": true Oct 20 18:00:14 node1 kubelet[875]: } Oct 20 18:00:14 node1 kubelet[875]: } Oct 20 18:00:14 node1 kubelet[875]: ] Oct 20 18:00:14 node1 kubelet[875]: } Oct 20 18:00:14 node1 kubelet[875]: : [failed to find plugin "flannel" in path [/opt/cni/bin]] Oct 20 18:00:14 node1 kubelet[875]: W1020 18:00:14.046182 875 cni.go:239] Unable to update cni config: no valid networks found in /etc/cni/net.d Oct 20 18:00:17 node1 kubelet[875]: E1020 18:00:17.442259 875 kubelet.go:2103] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized Oct 20 18:00:19 node1 kubelet[875]: W1020 18:00:19.051064 875 cni.go:204] Error validating CNI config list {
重新执行 kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
问题找到了,是/opt/cni/bin/缺少flannel文件
登录后可查看更多问答,登录/注册
阿里云最有价值专家亲授,云原生时代必备技能
1.6k 5
1.4k 5
1.4k 2
1.5k 30
1.8k 24
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号