Closed surya-adapa closed 2 years ago
Hi @surya-adapa Just want to check first that you completed all steps in https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/09-install-cri-workers.md
Hi @surya-adapa
I just ran it through again as-is
vagrant@master-1:~$ kubectl get po -A
NAMESPACE NAME READY STATUS RESTARTS AGE
default busybox 1/1 Running 0 41s
kube-system coredns-6cc4b9868d-hvw2r 1/1 Running 0 47s
kube-system coredns-6cc4b9868d-vnt88 1/1 Running 0 47s
kube-system weave-net-crtwn 2/2 Running 1 (114s ago) 2m6s
kube-system weave-net-t7gv4 2/2 Running 1 (115s ago) 2m6s
I'm inclined to think you missed something in lab 9
Closing this Pull Request, as the same fixes are already covered in https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/09-install-cri-workers.md
the weave cni is not taking care of the loopback, which is needed on pod deployments. This was preventing all next pods, even the coredns pods to comeup. event logs from coredns pod Events: Type Reason Age From Message
Normal Scheduled 14m default-scheduler Successfully assigned kube-system/coredns-6cc4b9868d-mhzkf to worker-1 Warning FailedCreatePodSandBox 14m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "0dbe54e1d0525e2a6af9fb7e7fb2d3ae8576a376678e3d07d270c685a651d7d0": failed to find plugin "loopback" in path [/opt/cni/bin]
This is fixed by downloading the plugins from[https://github.com/containernetworking/plugins/releases/tag/v0.9.0], to directory /opt/cni/bin/ and then provisioning the weave daemon-sets.
This was not available in stackoverflow or other places as well, Hope it helps,