Hi Team,
I have downloaded dockers images in my LAB systems but I am unable to create the pods in kubernetes cluster level using “kuberctl run ” , all pods are going in “ContainerCreating” status.
I am totally new kubernetes do please excuse and suggest how to configure it.
Log snippets:
root@kubemaster:~# kubectl get pods
NAME READY STATUS RESTARTS AGE
myfirstpod-7457f5c7f8-mjtkj 0/1 ContainerCreating 0 6d22h
pod2-6d6dfbc46-hq78b 0/1 ContainerCreating 0 6d22h
root@kubemaster:~# kubectl describe pod myfirstpod-7457f5c7f8-mjtkj | tail
Warning FailedCreatePodSandBox 118s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “4172ee50614c3a05959c78e548ac2133b75809747abeddc74c1660ee87a8940c” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 117s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “f46adf5dc0f62c18adaf299d612a82d2455d88d61160b359172e62422653380f” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 115s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “3cd19360b416180bba18fa784d6519ebe31cdd56ef0868bf9df2f1950549a397” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 113s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “6914fef8191ea83b1ce50c606e4f826023db01c70b7a83abf1ec122a6c0ef4c5” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 107s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “a22bed4b94cc5f0c0d37b00e3257dc61bbc466fa025c4d486520a8ae3376d20c” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 105s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “d6a2f3dc84ccdee802188037c7cf99b7c95e5d4ca2dc1c000d2846da688ed910” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 103s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “df3dc6bc6488ac3b6264530217e15813df6b234f83f7dfc505888d1c2c2df98e” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 101s kubelet, kubenode2 Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “f2d0cafefd0f747f39228a5a3e2c5a9efb5dcd573ae84781b8f27eec2d27ba1f” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Warning FailedCreatePodSandBox 94s (x3 over 99s) kubelet, kubenode2 (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container “aea67e9e489643d1db663e00ff98e518501bf06815211a8638580b72916f1b38” network for pod “myfirstpod-7457f5c7f8-mjtkj”: networkPlugin cni failed to set up pod “myfirstpod-7457f5c7f8-mjtkj_default” network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/node container is running and has mounted /var/lib/calico/
Normal SandboxChanged 93s (x13 over 2m1s) kubelet, kubenode2 Pod sandbox changed, it will be killed and re-created.