hey everyone, I have been stuck at this problem for a few days. I have been doing the practice test in SECTION 11 in the CKA Exam: “INSTALL, PRACTICE TEST CLUSTER INSTALLATION USING KUBEADM”
I am trying to bootstrap a kubernetes cluster with kubeadm. I am now very close, but stuck at getting Weave net pod running for the worker node somehow. It’s stuck at
root@node01:~# kubectl -n kube-system logs weave-net-fg9bc weave Error from server (BadRequest): container "weave" in pod "weave-net-fg9bc" is waiting to start: PodInitializing root@node01:~# kubectl -n kube-system logs weave-net-fg9bc weave-npc Error from server (BadRequest): container "weave-npc" in pod "weave-net-fg9bc" is waiting to start: PodInitializing
the weave net pod for the control plane is happy. I don’t know why. There is not much information to debug.
Below is the log of kubelet on the worker node.
Oct 28 13:59:58 node01 kubelet: E1028 13:59:58.735525 12807 kubelet.go:2337] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized" Oct 28 14:00:01 node01 kubelet: I1028 14:00:01.367636 12807 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
the log lines above might be just due to the weave pods not runnning successfully yet?
Anyone has a clue?