After joining the slave node and adding cni slave node is not getting ready but master node is getting ready

12/26/2018
 Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  MemoryPressure   False   Wed, 26 Dec 2018 10:43:45 +0530   Wed, 26 Dec 2018 10:40:45 +0530   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Wed, 26 Dec 2018 10:43:45 +0530   Wed, 26 Dec 2018 10:40:45 +0530   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure      False   Wed, 26 Dec 2018 10:43:45 +0530   Wed, 26 Dec 2018 10:40:45 +0530   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready            False   Wed, 26 Dec 2018 10:43:45 +0530   Wed, 26 Dec 2018 10:40:45 +0530   KubeletNotReady              runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

i am getting the above error.Is the problem with the slave node or the master node.what should i do to make the all the joined nodes ready

-- jaya rohith
docker
kubeadm
kubectl
kubelet
kubernetes

1 Answer

3/1/2019

Because /etc/cni/net.d is not containing the files present in the master node copy them manually from master to worker and it works

-- jaya rohith
Source: StackOverflow