Kubernetes cni config uninitializedKubernetes stuck on ContainerCreatingExposing service in KubernetesKubernetes DNS Missing [MissingClusterDNS]kubectl: The connection to the server XXX.XXX.XXXXXX was refusedKubernetes cgroup driver misconfigurationnginx-ingress controller crashes every few daysEncrypted config kubernetes on Google CloudTrigger defined kubernetes jobCan you run a kubernetes cluster inside a kubernetes cluster?Change serviceSubnet in Kubernetes

shebang or not shebang

The unknown and unexplained in science fiction

Picking a theme as a discovery writer

Why did Dr. Strange keep looking into the future after the snap?

Did Ham the Chimp follow commands, or did he just randomly push levers?

Test whether a string is in a list with variable

What is the Ancient One's mistake?

Assuming a normal distribution: what is the sd for a given mean?

How is it believable that Euron could so easily pull off this ambush?

While drilling into kitchen wall, hit a wire - any advice?

Drug Testing and Prescribed Medications

Are modes in jazz primarily a melody thing?

Why doesn't Remus Lupin turn into a werewolf in the scene where Harry looks for Peter Pettigrew on the Marauder's Map?

why it is 2>&1 and not 2>>&1 to append to a log file

Why doesn't a particle exert force on itself?

Concatenate all values of the same XML element using XPath/XQuery

How can I test a shell script in a "safe environment" to avoid harm to my computer?

Why is there a cap on 401k contributions?

What happens when the drag force exceeds the weight of an object falling into earth?

What's weird about Proto-Indo-European Stops?

Employee is self-centered and affects the team negatively

My large rocket is still flipping over

If an attacker targets a creature with the Sanctuary spell cast on them, but fails the Wisdom save, can they choose not to attack anyone else?

Inverse of Element in Field



Kubernetes cni config uninitialized


Kubernetes stuck on ContainerCreatingExposing service in KubernetesKubernetes DNS Missing [MissingClusterDNS]kubectl: The connection to the server XXX.XXX.XXXXXX was refusedKubernetes cgroup driver misconfigurationnginx-ingress controller crashes every few daysEncrypted config kubernetes on Google CloudTrigger defined kubernetes jobCan you run a kubernetes cluster inside a kubernetes cluster?Change serviceSubnet in Kubernetes






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox, so with yum i installed kubeadm, kubelet and docker.



Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32 i run into the following error :



Unable to update cni config: No networks found in /etc/cni/net.d

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


So i checked, no cni folder in /etc even that kubernetes-cni-0.6.0-0.x86_64 is installed. I Tried commenting KUBELET_NETWORK_ARGS in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf but it didn't work.



PS:



  • I'm installing behind proxy.



  • I have multiple network adapters:



    • NAT : 10.0.2.15/24 for Internet


    • Host Only : 192.168.56.33/32


    • And docker interface : 172.17.0.1/16




Docker version: 17.12.1-ce

kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"

Centos 7











share|improve this question



















  • 1





    sorry, but the pod network is an overlay network and need to be different from your host only network

    – c4f4t0r
    Mar 6 '18 at 10:36











  • runing kubeadm init with no arguments return the same error

    – BOUKANDOURA Mhamed
    Mar 6 '18 at 10:47











  • I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon

    – c4f4t0r
    Mar 7 '18 at 9:20

















1















I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox, so with yum i installed kubeadm, kubelet and docker.



Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32 i run into the following error :



Unable to update cni config: No networks found in /etc/cni/net.d

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


So i checked, no cni folder in /etc even that kubernetes-cni-0.6.0-0.x86_64 is installed. I Tried commenting KUBELET_NETWORK_ARGS in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf but it didn't work.



PS:



  • I'm installing behind proxy.



  • I have multiple network adapters:



    • NAT : 10.0.2.15/24 for Internet


    • Host Only : 192.168.56.33/32


    • And docker interface : 172.17.0.1/16




Docker version: 17.12.1-ce

kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"

Centos 7











share|improve this question



















  • 1





    sorry, but the pod network is an overlay network and need to be different from your host only network

    – c4f4t0r
    Mar 6 '18 at 10:36











  • runing kubeadm init with no arguments return the same error

    – BOUKANDOURA Mhamed
    Mar 6 '18 at 10:47











  • I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon

    – c4f4t0r
    Mar 7 '18 at 9:20













1












1








1








I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox, so with yum i installed kubeadm, kubelet and docker.



Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32 i run into the following error :



Unable to update cni config: No networks found in /etc/cni/net.d

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


So i checked, no cni folder in /etc even that kubernetes-cni-0.6.0-0.x86_64 is installed. I Tried commenting KUBELET_NETWORK_ARGS in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf but it didn't work.



PS:



  • I'm installing behind proxy.



  • I have multiple network adapters:



    • NAT : 10.0.2.15/24 for Internet


    • Host Only : 192.168.56.33/32


    • And docker interface : 172.17.0.1/16




Docker version: 17.12.1-ce

kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"

Centos 7











share|improve this question
















I'm installing kubernetes(kubeadm) on centos VM runing inside Virtualbox, so with yum i installed kubeadm, kubelet and docker.



Now while trying to setup cluster with kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32 i run into the following error :



Unable to update cni config: No networks found in /etc/cni/net.d

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


So i checked, no cni folder in /etc even that kubernetes-cni-0.6.0-0.x86_64 is installed. I Tried commenting KUBELET_NETWORK_ARGS in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf but it didn't work.



PS:



  • I'm installing behind proxy.



  • I have multiple network adapters:



    • NAT : 10.0.2.15/24 for Internet


    • Host Only : 192.168.56.33/32


    • And docker interface : 172.17.0.1/16




Docker version: 17.12.1-ce

kubectl version : Major:"1",
Minor:"9", GitVersion:"v1.9.3"

Centos 7








kubernetes






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 26 '18 at 11:08









bodgit

3,7991025




3,7991025










asked Mar 6 '18 at 10:27









BOUKANDOURA MhamedBOUKANDOURA Mhamed

1613




1613







  • 1





    sorry, but the pod network is an overlay network and need to be different from your host only network

    – c4f4t0r
    Mar 6 '18 at 10:36











  • runing kubeadm init with no arguments return the same error

    – BOUKANDOURA Mhamed
    Mar 6 '18 at 10:47











  • I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon

    – c4f4t0r
    Mar 7 '18 at 9:20












  • 1





    sorry, but the pod network is an overlay network and need to be different from your host only network

    – c4f4t0r
    Mar 6 '18 at 10:36











  • runing kubeadm init with no arguments return the same error

    – BOUKANDOURA Mhamed
    Mar 6 '18 at 10:47











  • I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon

    – c4f4t0r
    Mar 7 '18 at 9:20







1




1





sorry, but the pod network is an overlay network and need to be different from your host only network

– c4f4t0r
Mar 6 '18 at 10:36





sorry, but the pod network is an overlay network and need to be different from your host only network

– c4f4t0r
Mar 6 '18 at 10:36













runing kubeadm init with no arguments return the same error

– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47





runing kubeadm init with no arguments return the same error

– BOUKANDOURA Mhamed
Mar 6 '18 at 10:47













I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon

– c4f4t0r
Mar 7 '18 at 9:20





I am using kubernetes 1.9.3 and I used kubeadm init --pod-network-cidr=10.244.0.0/16 and I used flannel as network addon

– c4f4t0r
Mar 7 '18 at 9:20










3 Answers
3






active

oldest

votes


















1














It was a proxy error as mentionned in Github https://github.com/kubernetes/kubernetes/issues/34695



They suggested to use kubeadm init --use-kubernetes-version v1.4.1 but i change my network entirely (no proxy) and i manage to setup my cluster.



And as @Radek mentionned before, seting up pod network with kubectl apply -f .... came after the initialization of cluster.






share|improve this answer






























    1














    reason:NetworkPluginNotReady - you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.



    Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes






    share|improve this answer

























    • I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

      – BOUKANDOURA Mhamed
      Mar 6 '18 at 12:47












    • the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

      – Radek 'Goblin' Pieczonka
      Mar 7 '18 at 8:11


















    0














    seems a docker image is missing.



    check if the images have been downloaded into your machines(VM)



    docker image list or kubeadm config images list



    expected image: quay.io/coreos/flannel v0.10.0-amd64.



    pls refer to offical doc for more images required



    if the image is missing, pls download it manually.



    docker pull quay.io/coreos/flannel:v0.10.0-amd64



    for more images: kubeadm config images pull



    Then, restart






    share|improve this answer

























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "2"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f900223%2fkubernetes-cni-config-uninitialized%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      It was a proxy error as mentionned in Github https://github.com/kubernetes/kubernetes/issues/34695



      They suggested to use kubeadm init --use-kubernetes-version v1.4.1 but i change my network entirely (no proxy) and i manage to setup my cluster.



      And as @Radek mentionned before, seting up pod network with kubectl apply -f .... came after the initialization of cluster.






      share|improve this answer



























        1














        It was a proxy error as mentionned in Github https://github.com/kubernetes/kubernetes/issues/34695



        They suggested to use kubeadm init --use-kubernetes-version v1.4.1 but i change my network entirely (no proxy) and i manage to setup my cluster.



        And as @Radek mentionned before, seting up pod network with kubectl apply -f .... came after the initialization of cluster.






        share|improve this answer

























          1












          1








          1







          It was a proxy error as mentionned in Github https://github.com/kubernetes/kubernetes/issues/34695



          They suggested to use kubeadm init --use-kubernetes-version v1.4.1 but i change my network entirely (no proxy) and i manage to setup my cluster.



          And as @Radek mentionned before, seting up pod network with kubectl apply -f .... came after the initialization of cluster.






          share|improve this answer













          It was a proxy error as mentionned in Github https://github.com/kubernetes/kubernetes/issues/34695



          They suggested to use kubeadm init --use-kubernetes-version v1.4.1 but i change my network entirely (no proxy) and i manage to setup my cluster.



          And as @Radek mentionned before, seting up pod network with kubectl apply -f .... came after the initialization of cluster.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 6 '18 at 14:55









          BOUKANDOURA MhamedBOUKANDOURA Mhamed

          1613




          1613























              1














              reason:NetworkPluginNotReady - you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.



              Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes






              share|improve this answer

























              • I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

                – BOUKANDOURA Mhamed
                Mar 6 '18 at 12:47












              • the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

                – Radek 'Goblin' Pieczonka
                Mar 7 '18 at 8:11















              1














              reason:NetworkPluginNotReady - you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.



              Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes






              share|improve this answer

























              • I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

                – BOUKANDOURA Mhamed
                Mar 6 '18 at 12:47












              • the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

                – Radek 'Goblin' Pieczonka
                Mar 7 '18 at 8:11













              1












              1








              1







              reason:NetworkPluginNotReady - you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.



              Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes






              share|improve this answer















              reason:NetworkPluginNotReady - you need to install a networking solution into kubeadm provisioned cluster before anything else can start up.



              Using kubeadm to Create a Cluster - Installing a pod network | Kubernetes







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Mar 7 '18 at 10:24









              Drakonoved

              6031618




              6031618










              answered Mar 6 '18 at 11:17









              Radek 'Goblin' PieczonkaRadek 'Goblin' Pieczonka

              30616




              30616












              • I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

                – BOUKANDOURA Mhamed
                Mar 6 '18 at 12:47












              • the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

                – Radek 'Goblin' Pieczonka
                Mar 7 '18 at 8:11

















              • I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

                – BOUKANDOURA Mhamed
                Mar 6 '18 at 12:47












              • the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

                – Radek 'Goblin' Pieczonka
                Mar 7 '18 at 8:11
















              I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

              – BOUKANDOURA Mhamed
              Mar 6 '18 at 12:47






              I'm having this error The connection to the server localhost:8080 was refused - did you specify the right host or port? In every execution of kubectl. Trying to install pod network (weave) with kubectl apply -f ... didn't work.

              – BOUKANDOURA Mhamed
              Mar 6 '18 at 12:47














              the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

              – Radek 'Goblin' Pieczonka
              Mar 7 '18 at 8:11





              the error in your comment means that you probably have no valid config in ~/.kube/config (or it points to localhost:8080 and no api is there which is the less likely scenario)

              – Radek 'Goblin' Pieczonka
              Mar 7 '18 at 8:11











              0














              seems a docker image is missing.



              check if the images have been downloaded into your machines(VM)



              docker image list or kubeadm config images list



              expected image: quay.io/coreos/flannel v0.10.0-amd64.



              pls refer to offical doc for more images required



              if the image is missing, pls download it manually.



              docker pull quay.io/coreos/flannel:v0.10.0-amd64



              for more images: kubeadm config images pull



              Then, restart






              share|improve this answer





























                0














                seems a docker image is missing.



                check if the images have been downloaded into your machines(VM)



                docker image list or kubeadm config images list



                expected image: quay.io/coreos/flannel v0.10.0-amd64.



                pls refer to offical doc for more images required



                if the image is missing, pls download it manually.



                docker pull quay.io/coreos/flannel:v0.10.0-amd64



                for more images: kubeadm config images pull



                Then, restart






                share|improve this answer



























                  0












                  0








                  0







                  seems a docker image is missing.



                  check if the images have been downloaded into your machines(VM)



                  docker image list or kubeadm config images list



                  expected image: quay.io/coreos/flannel v0.10.0-amd64.



                  pls refer to offical doc for more images required



                  if the image is missing, pls download it manually.



                  docker pull quay.io/coreos/flannel:v0.10.0-amd64



                  for more images: kubeadm config images pull



                  Then, restart






                  share|improve this answer















                  seems a docker image is missing.



                  check if the images have been downloaded into your machines(VM)



                  docker image list or kubeadm config images list



                  expected image: quay.io/coreos/flannel v0.10.0-amd64.



                  pls refer to offical doc for more images required



                  if the image is missing, pls download it manually.



                  docker pull quay.io/coreos/flannel:v0.10.0-amd64



                  for more images: kubeadm config images pull



                  Then, restart







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 24 '18 at 13:32









                  Thomas Berger

                  1,5051121




                  1,5051121










                  answered Jul 24 '18 at 8:04









                  Alex WangAlex Wang

                  1




                  1



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Server Fault!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f900223%2fkubernetes-cni-config-uninitialized%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                      Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                      What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company