0
votes

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:~#

1

1 Answers

0
votes

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`