1

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

Matt
  • 68,711
  • 7
  • 155
  • 158
HARINI NATHAN
  • 217
  • 3
  • 12

1 Answers1

1

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.

Wytrzymały Wiktor
  • 11,492
  • 5
  • 29
  • 37