Search code examples
kubernetesflannelcni

Kubernetes with flannel: CNI config uninitialized


I am trying to setup a Kubernetes cluster on local machines. Bare metal. No OpenStack, No Maas or something.

After kubeadm init ... on the master node, kubeadm join ... on the slave nodes and applying flannel at the master I get the message from the slaves:

runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

Can anyone tell me what I have done wrong or missed any steps? Should flannel be applied to all the slave nodes as well? If yes, they do not have a admin.conf...

PS. All the nodes do not have internet access. That means all files have to be copied manually via ssh.


Solution

  • The problem was the missing internet connection. After loading the Docker images manually to the worker nodes they appear to be ready.

    Unfortunately I did not found a helpful error message around this.