Comments (5)
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.
The same issue on my side, a month ago I managed to deploy cluster locally, now having those issues.
from kubernetes-cluster.
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.
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.
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)
- on windows
- Node status says not ready HOT 1
- Fixed API 1.6 problem and other issues + cleanup
- is the repo missing ./kubeadm_join_cmd.sh? HOT 1
- Whats the Sudo password HOT 6
- Trying to deploy application to kubernetes
- k8s-head: Failed to restart kubelet.service: Unit kubelet.service not found HOT 2
- How to access kubectl dashboard?
- Should upgrate to new 1.16 APIS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-cluster.