1
votes

I have created one ec2 instance and added that to loadbalancer while I try to create master node with kubeadm init --control-plane-endpoint "LOAD_BALANCER_DNS:LOAD_BALANCER_PORT" --upload-certs command I'm getting following logs from kubelet status

kubelet[11586]: E0305 06:48:26.280438 11586 kubelet.go:2183] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready cni config uninitialized

When I tried to install CNI plugin it shows

Are you using correct host or port?

Can someone help me to resolve this

1
Are you using EKS here?Tummala Dhanvi
No I'm trying with kubeadm toolHARINI NATHAN
Have you seen this thread?Wytrzymały Wiktor
No will check nowHARINI NATHAN
But If I give kubeadm init the node is created,If I create with loadbalancer ip and port it is not getting created after creation only i can make the following steps right? mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/configHARINI NATHAN

1 Answers

1
votes

NetworkPluginNotReady message:docker: network plugin is not ready cni config uninitialized means that your CNI is misconfigured or missing.

In order to make it work properly you need to specify --pod-network-cidr while executing the kubeadm init command.

Here you can find the official documentation with a list of most popular Pod network plugins to choose from like Calico or Flannel.