请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师,node1一直都是noready,可能原因有哪些

[root@localhost Chapter4]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
master Ready master 7h37m v1.19.3
node1 NotReady 14m v1.19.3

正在回答 回答被采纳积分+3

1回答

清风 2022-10-20 17:33:43

看看 node1 的日志呢

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_慕莱坞3428004 #1
    这是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 {
    回复 有任何疑惑可以回复我~ 2022-10-20 18:04:11
  • 清风 回复 提问者 qq_慕莱坞3428004 #2
    重新执行 kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
    回复 有任何疑惑可以回复我~ 2022-10-20 18:17:10
  • 提问者 qq_慕莱坞3428004 回复 清风 #3
    问题找到了,是/opt/cni/bin/缺少flannel文件
    回复 有任何疑惑可以回复我~ 2022-10-20 18:38:45
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号