no networks found in /etc/cni/net.d
"Unable to update cni config" err="no networks found in /etc/cni/net.d""Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugi
·
"Unable to update cni config" err="no networks found in /etc/cni/net.d"
"Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
[root@k8s-master ~]#
[root@k8s-master ~]# service kubelet status -l
Redirecting to /bin/systemctl status -l kubelet.service
?.kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
?..10-kubeadm.conf
Active: active (running) since Sun 2022-07-24 23:55:53 CST; 15min ago
Docs: https://kubernetes.io/docs/
Main PID: 8448 (kubelet)
Tasks: 16
Memory: 75.5M
CGroup: /system.slice/kubelet.service
?..8448 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --cgroup-driver=cgroupfs --config=/var/lib/kubelet/config.yaml --network-plugin=cni --pod-infra-container-image=registry.aliyuncs.com/google_containers/pause:3.5
Jul 25 00:11:26 k8s-master kubelet[8448]: I0725 00:11:26.551806 8448 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
Jul 25 00:11:26 k8s-master kubelet[8448]: E0725 00:11:26.694628 8448 kubelet.go:2332] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
Jul 25 00:11:31 k8s-master kubelet[8448]: I0725 00:11:31.552539 8448 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
Jul 25 00:11:31 k8s-master kubelet[8448]: E0725 00:11:31.696963 8448 kubelet.go:2332] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
Jul 25 00:11:36 k8s-master kubelet[8448]: I0725 00:11:36.553553 8448 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
Jul 25 00:11:36 k8s-master kubelet[8448]: E0725 00:11:36.699407 8448 kubelet.go:2332] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
Jul 25 00:11:41 k8s-master kubelet[8448]: I0725 00:11:41.554733 8448 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
Jul 25 00:11:41 k8s-master kubelet[8448]: E0725 00:11:41.702959 8448 kubelet.go:2332] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
Jul 25 00:11:46 k8s-master kubelet[8448]: I0725 00:11:46.556084 8448 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
Jul 25 00:11:46 k8s-master kubelet[8448]: E0725 00:11:46.706985 8448 kubelet.go:2332] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
[root@k8s-master cni]# ll
===
移除:
--network-plugin=cni
k8s-master Ready
[root@k8s-master cni]#
[root@k8s-master cni]# cd /etc/cni/net.d
-bash: cd: /etc/cni/net.d: No such file or directory
[root@k8s-master cni]#
[root@k8s-master cni]#
[root@k8s-master cni]# cat /var/lib/kubelet/kubeadm-flags.env
KUBELET_KUBEADM_ARGS="--network-plugin=cni --pod-infra-container-image=registry.aliyuncs.com/google_containers/pause:3.5"
[root@k8s-master cni]#
[root@k8s-master cni]# vi /var/lib/kubelet/kubeadm-flags.env
[root@k8s-master cni]#
[root@k8s-master cni]# cat /var/lib/kubelet/kubeadm-flags.env
KUBELET_KUBEADM_ARGS="--pod-infra-container-image=registry.aliyuncs.com/google_containers/pause:3.5"
[root@k8s-master cni]#
[root@k8s-master cni]# systemctl restart kubelet
[root@k8s-master cni]#
[root@k8s-master cni]#
[root@k8s-master cni]# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-master Ready control-plane,master 83m v1.22.0
更多推荐
已为社区贡献2条内容
所有评论(0)