weixin_52331560 2022-11-21 10:12 采纳率: 83.3%
浏览 19
已结题

k8s1.21安装flannel插件(v0.13.1-rc2)报错

k8s1.21安装flannel插件(v0.13.1-rc2)报错

所有节点一直notready

[root@master ~]# kubectl get node
NAME     STATUS     ROLES                  AGE   VERSION
master   NotReady   control-plane,master   12h   v1.21.0
node1    NotReady   <none>                 12h   v1.21.0
node2    NotReady   <none>                 12h   v1.21.0

查看kubelet日志报错

Nov 20 21:00:53 master kubelet[34695]: I1120 21:00:53.926251   34695 cni.go:204] "Error validating CNI config list" configList="{\n  \"name\": \"cbr0\",\n  \"plugins\": [\n    {\n      \"type\": \"flannel\",\n      \"delegate\": {\n        \"hairpinMode\": true,\n        \"isDefaultGateway\": true\n      }\n    },\n    {\n      \"type\": \"portmap\",\n      \"capabilities\": {\n        \"portMappings\": true\n      }\n    }\n  ]\n}\n" err="[failed to find plugin \"flannel\" in path [/opt/cni/bin]]"
Nov 20 21:00:53 master kubelet[34695]: I1120 21:00:53.926314   34695 cni.go:239] "Unable to update cni config" err="no valid networks found in /etc/cni/net.d"
Nov 20 21:00:55 master kubelet[34695]: E1120 21:00:55.170484   34695 kubelet.go:2218] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
Nov 20 21:00:58 master kubelet[34695]: I1120 21:00:58.935344   34695 cni.go:204] "Error validating CNI config list" configList="{\n  \"name\": \"cbr0\",\n  \"plugins\": [\n    {\n      \"type\": \"flannel\",\n      \"delegate\": {\n        \"hairpinMode\": true,\n        \"isDefaultGateway\": true\n      }\n    },\n    {\n      \"type\": \"portmap\",\n      \"capabilities\": {\n        \"portMappings\": true\n      }\n    }\n  ]\n}\n" err="[failed to find plugin \"flannel\" in path [/opt/cni/bin]]"
Nov 20 21:00:58 master kubelet[34695]: I1120 21:00:58.935442   34695 cni.go:239] "Unable to update cni config" err="no valid networks found in /etc/cni/net.d"
Nov 20 21:01:00 master kubelet[34695]: E1120 21:01:00.269921   34695 kubelet.go:2218] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"


  • 写回答

4条回答 默认 最新

  • 游一游走一走 2022-11-21 10:26
    关注

    检查网络插件有没安装kubernetes-cni

    yum clean all && yum makecache && yum -y install kubernetes-cni
    
    评论

报告相同问题?

问题事件

  • 系统已结题 11月29日
  • 创建了问题 11月21日

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器