Error installing cluster kubeadm

Hi,

I was creating a new cluster in kubernetes using kubeadm tool, and when I have created the cluster, I couldn’t create any pod, I had this error

docker_sandbox.go:400] failed to read pod IP from plugin/docker: networkPlugin cni failed on the status hook for pod “calico-kube-controllers-76d4774d89-47k82_kube-system”: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container

What was the problem?

Thanks

Hello juanpi,
You should install a pod network. Please check this useful link to do that https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network

@KodeKloud, @juanpi9, @vijin.palazhi and @player001
Could you please share the details, I am not sure from where may I get the add-on.yaml file for network plugins?

Hello, ahmedkuet
You can find one version down in the v1.17. You can visit below link for the network plugins.
https://v1-17.docs.kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network

1 Like

@player001, Thanks a lot mate. I will bookmark the link.