kubernetes is running but not listing the worker node

7/5/2018

I have setup kubernetes cluster in my ubuntu machine, before it was working then I have restart the machine, it's not working now properly. I am getting the following error.

root@master:~# kubectl get nodes The connection to the server 192...*:6443 was refused - did you specify the right host or port? root@master:~#

-- Manikandan
kubeadm
kubectl
kubernetes

1 Answer

7/5/2018

Can you explain how you installed kubernetes? For instance are you using minikube?

perhaps you just need to start minikube?

minikube start

This takes a few minutes to start up so be patient

An alternative cause is that your IP may have changed. does ip addr match the ip its trying to connect to. If it doesn't you may need to edit your ~/kube/config file

Is anything listening on port 6443?

netstat -pant | grep 6443`

-- user1517142
Source: StackOverflow