-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network plugin is not ready: cni config uninitialized #48798
Comments
@PLoic There are no sig labels on this issue. Please add a sig label by: |
/area [kubeadm] |
@PLoic you get this error because no CNI network has been defined in /etc/cni/net.d and you're apparently using the CNI network plugin. Something has to write a config file to that directory to tell the CNI driver how to configure networking. I'm not sure what/how kubeadm does that though, so I'll leave that to @jbeda or other kubeadm folks. |
xref: #43567 |
It's seem to working by removing the |
removing $KUBELET_NETWORK_ARGS not work with me. |
@PLoic also not work with me |
@PLoic also, kubelet logs would be great |
try to apply this plugin: kubectl apply --filename https://git.io/weave-kube-1.6 |
@PLoic @dcbw I install flannel plugin of k8s(1.7) still get this same error ,Can you provide a solution?Jul 14 17:57:20 node2 kubelet: W0714 17:57:20.540849 17504 cni.go:189] Unable to update cni config: No networks found in /etc/cni/net.d |
Sorry for the delay, I was using Weave, I will try to update kubernetes to 1.7.1 and with the new version of weave |
I updated all my components and it seems to works ! :) |
Is it ok to close this issue @PLoic ? |
@cmluciano Yes I think it's ok to close this issue |
Removing the $KUBELET_NETWORK_ARGS in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf works for me. |
Note that This is fine in some cases, particularly if you only have one machine. It is not helpful if you actually want to use CNI. |
I am seeing the exact same error with kubeadm, where it is struck forever at:
In the "journalctl -r -u kubelet" I see these lines over and over: Version details are: Kubectl version: Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4", GitCommit:"793658f2d7ca7f064d2bdf606519f9fe1229c381", GitTreeState:"clean", BuildDate:"2017-08-17T08:48:23Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}` OS Details are: |
@ashish-billore what CNI provider did you install? |
i'm getting on ubuntu 17.04 if i remove this line from the kubelet starts, then i install weave-net as the pod-network plugin but the kube-system pods never start (they remain scheduled?).
same happens with flannel. |
Then what is the solution |
kubectl -n kube-system apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml Throws error as above |
flannel has not updated their manifest to comply with the latest changes in k8s 1.16. |
...or patch the flannel manifests to use |
I have this issue on Ubuntu 16.04 with k8s 1.16 (I run ubuntu on vagrant) Removing the cni plugin conf from /var/lib/kubelet/kubeadm-flags.env works fine |
That was fixed a while ago, but the links in the Kubernetes documentation still point to an older version which doesn't work (https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/ has https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml). Using "master" instead works and also fixes another issue (missing version in the CNI config). |
which should include both the cniVersion and apps/v1 fixes. |
This is what I saw: This error comes when you dont have flannel running yet, but you start kublet with just manifests of apiserver, scheduler and controller-manager - WHILE YOU HAVE THIS LINE in 10-kubeadm.conf - "Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --node-ip=192.168.8.11" Comment that and start kubelet. |
Hi, Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized |
If you can provide more information about the running environment, it will be helpful. Such as, the Operate System, and what did you do before the error occurred. |
this is a new fresh install of version 1.16.0 on amazon. if i install 1.15.0 there are no problems at all. this is what i see in syslog of the master nodes. Mar 12 05:26:22 ip-172-28-125-218 kubeletÄ3656Å: E0312 05:26:22.761009 3656 kubelet.go:2187Å Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized |
Removing the cni plugin conf from /var/lib/kubelet/kubeadm-flags.env also works on CentOS 7.6 with k8s 1.16.8 |
please don't change anything. Just run this command. The error will be gone. kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml |
Thanks @ikramuallah , that worked for 1.18, thing is it didn't work directly cause one of the flannel pod could not be pulled as one of the quay sites was throwing 500. So my suggestion is that after applying the YAML, check if all the flannel pods have come up and debug that. Linking issue I raised in flannel for reference. flannel-io/flannel#1294 |
thanks! |
Sorry, I can't reach the link. Is something wrong ? |
@juxuny link is ok, maybe some temporary netw connectivity issues? |
Please someone help me Warning NetworkNotReady 3m27s (x4964 over 168m) kubelet, casts1 network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized All others pods are in running state. except the kube-proxy-windows I have created kubernetes envrioronment as below: I am using flannel network. I have tried below solutions: Please let me know the exact problem |
In my case when i am init kubernetes master i have had this issue. After delete all data in etcd the process init was successful |
I had same problem of node status NotReady with my kubernetes node, below is what worked for me OS Version: Ubuntu Server 20.10 |
I am facing the same error, not getting any clue to how to rid of this - please help
Node has been created but not adding to cluster, |
@PLoic I am using Ubuntu 18.04, my |
its works for me on oracle linux 7.7 |
Hey folks! |
I'm using VMWare to create cluster Kubernetes and get same error, after shutdown and restart VM it works! |
All nodes install:
|
I'm copy greate node /opt/cni/bin/flannel to bad node folder ,but node status is NotReady too, exec describe node log below
|
Hello, I want to do a fresh install of kubernetes via kubeadm, but when I start the install I'm stuck on
[apiclient] Created API client, waiting for the control plane to become ready
When I do a
journalctl -xe
I see :Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
And I don't why I get this error. I also tried to disable firewalld but no effect.
Environment:
kubectl version
): v1.7.0uname -a
): 3.10.0-514.26.2.el7.x86_64docker version :
Docker version 17.06.0-ce, build 02c1d87
My RPM version :
kubeadm-1.7.0, kubectl-1.7.0, kubelet-1.7.0, kubernetes-cni-0.5.1
Thanks for your help
The text was updated successfully, but these errors were encountered: