network plugin is not ready: cni config uninitialized

梦想与她 提交于 2020-02-28 03:46:58

问题


KubeletNotReady

runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

I don't know how to make the network plugin ready


回答1:


While you run kubectl describe node <node_name> In the Conditions table, the Ready type will contain this message if you did not initialized cni. Proper initialization can be obtained by installing network addon. I will point you to 2 most used: Weave and Flannel

1) Weave

$ export kubever=$(kubectl version | base64 | tr -d '\n')
$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"

After executing those two commands you should see node in status "Ready"

$ kubectl get nodes

You could also check status

$ kubectl get cs

2) Flannel

$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/62e44c867a2846fefb68bd5f178daf4da3095ccb/Documentation/kube-flannel.yml

3) Kubernetes documentation will explain how install other network addons. In this article each CNI provider have a short description.



来源:https://stackoverflow.com/questions/52675934/network-plugin-is-not-ready-cni-config-uninitialized

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!