Giter Site home page Giter Site logo

Comments (5)

paulrusu8 avatar paulrusu8 commented on August 16, 2024

In addition to that, when sshing into the master node and running

kubectl describe pod coredns-5644d7b6d9-2tmzt,

I get following warning:

Warning NetworkNotReady 113s (x152 over 6m54s) kubelet, k8s-head network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

from kubernetes-cluster.

FilipVPetrov avatar FilipVPetrov commented on August 16, 2024

The same issue on my side, a month ago I managed to deploy cluster locally, now having those issues.

from kubernetes-cluster.

FilipVPetrov avatar FilipVPetrov commented on August 16, 2024

Also, I`m not able to list resources(node, pods, etc) from worker nodes.

vagrant@k8s-node-1:~$ kubectl get nodes The connection to the server localhost:8080 was refused - did you specify the right host or port?

from kubernetes-cluster.

josepvindas avatar josepvindas commented on August 16, 2024

Also, I`m not able to list resources(node, pods, etc) from worker nodes.

vagrant@k8s-node-1:~$ kubectl get nodes The connection to the server localhost:8080 was refused - did you specify the right host or port?

This is because by default, the nodes are not configured to run such operations. If you run kubectl config view from the Master node, you'll see that there are configurations for a cluster, a server name, an IP address, etc. if you run the same command from either node, however, you'll see that these fields are left empty.

In order to enable such operations from the nodes, you can run sudo cat /etc/kubernetes/admin.conf from the Master node, and paste the output into a file of the same name and directory in each of your worker nodes.

Once this is done, run export KUBECONFIG=/etc/kubernetes/admin.conf and you should now be able to list resources from your worker nodes, as well as creating Deployments, Pods, Services, etc.

from kubernetes-cluster.

Deepak-Routray avatar Deepak-Routray commented on August 16, 2024

I faced the same issue today. Looks to be specification difference for latest kubernetes version.
fixed the same by using older kubernetes version (1.15.0). Changes in below statements in Vagrantfile. Added k8s version. And it fixed my issues. Ideally calico.yaml should be updated to latest k8s version though.

"apt-get install -y kubelet=1.15.0-00 kubectl=1.15.0-00 kubeadm=1.15.0-00"

"kubeadm init --kubernetes-version="1.15.0" --apiserver-advertise-address=$IP_ADDR --apiserver-cert-extra-sans=$IP_ADDR --node-name $HOST_NAME --pod-network-cidr=172.16.0.0/16"

Thanks,
Deepak

from kubernetes-cluster.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.