The connection to the server <host>:6443 was refused - did you specify the right host or port?

Hi,

I had exactly the same issue, and I was able to resolve the issue using command below:

export KUBECONFIG=/etc/kubernetes/kubelet.conf

Sometimes it affects master node as well, but in that case - another issue appears, somethings like:

unable to connect to the server: x509: certificate signed by unknown authority

1 Like