Search code examples
kuberneteskubeadmamazon-elb

I'm trying to create High Available master node but getting Exception in cni Plugin


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


Solution

  • 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.