Nodes not ready after configuring network files
kongyanye opened this issue · comments
Hi Siarhei,
Thanks for you excellent tutorial! It is very detailed and insightful. I currently participate in a research project which is do a similar thing as you did in the tutorial but with two modifications: one is to do all the network configuration (VETH and VXLAN) using VPP, and the other is to provide only connection between selected containers/pods (to create a specific network topology). I'm following your tutorial to get myself familiarize with how the CNI is working. But there's a issue I can't figure out as shown below.
After configuring the files under directory /etc/cni/net.d/ and /opt/cni/bin, the command 'kubectl get node' still show the nodes are not ready (1 master and 2 worker nodes in my case, all of them not ready). So I can't deploy pods on them. Things I've checked:
- kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compi ler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:03:00Z", GoVersion:"go1.15.8", Compi ler:"gc", Platform:"linux/amd64"}
This is the k8s version I use.
- kubectl describe nodes master
In "Conditions" part, it says "runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:dock
er: network plugin is not ready: cni config uninitialized". But I don't know how to initialize the cni config. It's not mentioned in your tutorial.
- The CNI executable is indeed running. I can see logs in /var/log/bash-cni-plugin.log. The outputs are repeating two lines "CNI command: VERSION" and "stdin: {"cniVersion":"0.4.0"}". I don't know why the stdin is {"cniVersion":"0.4.0"}. 0.4.0 is not in the cniVersion I specified in file /etc/cni/net.d/10-bash-cni-plugin.conf.
I've checked your tutorial for multiple times but still don't know what the problem is. Could you help me solving this issue? Thanks a lot!