Certified Kubernetes Course: Kubernetes NotReady Status

Followed the video installing Kubernetes onCentOS and  kubernetes is always in NotReady status. Checked the linux log files and I see the following error .... 

"kubelet: W0928 19:04:17.265592 2117 cni.go:188] Unable to update cni config: No networks found in /etc/cni/net.d

kubelet: E0928 19:04:17.265705 2117 kubelet.go:2167] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"


Any ideas? 

  • post-author-pic
    Victor C
    09-28-2018

    Install flannel network plugin,

    kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml


  • post-author-pic
    Rotimi D
    09-28-2018

    done that and it still not working

  • post-author-pic
    Victor C
    09-28-2018

    Can you check if /etc/cni/net.d/10-flannel.conf is there ?

    {
    "name": "cbr0",
    "type": "flannel",
    "delegate": {
    "isDefaultGateway": true
    }
    }







  • post-author-pic
    Victor C
    09-28-2018

    /etc/cni/net.d/10-flannel.con

    {
    "name": "cbr0",
    "type": "flannel",
    "delegate": {
    "isDefaultGateway": true
    }
    }


  • post-author-pic
    Rotimi D
    09-28-2018

    Hi Victor, it wasn’t created. Will create it and try again. Thanks a lot. Much appreciated 

  • post-author-pic
    Victor C
    10-01-2018

    If /etc/cni/net.d/10-flannel.conf does not exist, create it manually with the configuration above. 

  • post-author-pic
    Rotimi D
    10-03-2018

    Thanks Victor, it worked. 

Looking For Team Training?

Learn More