我正在尝试按照文档使用Centos 7设置一个单节点Kubernetes集群。

kubeadm init将不会返回任何错误,但是kubectl get节点将返回:

NAME      STATUS     AGE       VERSION
[MY_IP]   NotReady   22s       v1.6.4

系统日志重复:
Jun  6 16:21:48 localhost kubelet: W0606 16:21:48.064388   11520 cni.go:157] Unable to update cni config: No networks found in /etc/cni/net.d
Jun  6 16:21:48 localhost kubelet: E0606 16:21:48.064537   11520 kubelet.go:2067] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

我只能在Kubernetes github日志中找到有关此信息,但是他们谈论的是错误,我还没有找到解决方法。谢谢

最佳答案

您可以运行此命令

kubectl create -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel-rbac.yml
kubectl create -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

08-28 09:22