kubelet报错 no networks found in /etc/cni/net.d


Feb 04 06:24:56 slave1-local kubelet[52928]: E0204 06:24:56.809232   52928 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network>
Feb 04 06:24:59 slave1-local kubelet[52928]: W0204 06:24:59.512705   52928 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
Feb 04 06:25:01 slave1-local kubelet[52928]: E0204 06:25:01.823177   52928 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network>
 

解决方法:vim /var/lib/kubelet/kubeadm-flags.env

删除其中的 --network-plugin=cni

重启kubelet

 部署网络插件

上一篇:Hadoop Kerberos 集成


下一篇:linux 配置固定IP踩坑