Rancher Server 设置
- Rancher 版本:2.5.12
- 安装选项 (Docker install): docker
下游集群信息
- Kubernetes 版本: v1.20.14-rancher2-1
- Cluster Type (Local/Downstream): 自定义
用户信息
- 登录用户的角色是什么? (管理员admin):
主机操作系统:
CentOS Linux release 7.6.1810 (Core)
问题描述:
rancher 2.5.12 自定义k8s集群,添加主机无法注册。
节点 kubelet容器日志报错:
W0109 06:19:56.772798 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
E0109 06:19:58.516008 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
重现步骤:
结果:
预期结果:
截图:
其他上下文信息:
日志
W0109 06:38:26.804343 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
E0109 06:38:30.159905 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
W0109 06:38:31.804474 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
I0109 06:38:32.943491 11624 container_manager_linux.go:490] [ContainerManager]: Discovered runtime cgroups name: /system.slice/docker.service
E0109 06:38:35.167289 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
W0109 06:38:36.804633 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
E0109 06:38:40.174198 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
W0109 06:38:41.804792 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
E0109 06:38:45.182877 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
W0109 06:38:46.804954 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
E0109 06:38:50.190520 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
W0109 06:38:51.805109 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d
E0109 06:38:55.197907 11624 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
W0109 06:38:56.805263 11624 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d