Connect refused

Hi Team,

I tried to install Kubeadmin in gcloud and try to access nodes or pods are any cluster information from slave1 or slave2. I am getting below.

In the Master node, it shows slave1 and slave2 nodes connected. But from slave1 and slave2 we getting below error.

Error: The connection to the server localhost:8080 was refused - did you specify the right host or port?

Please help. If anyone has any idea to resolve this issue.

Hi @kolaganikrishnaprasa,

This post may help: The connection to the server localhost:8080 was refused - did you specify the right host or port? - #6 by mrbobbytables - General Discussions - Discuss Kubernetes

Happy learning,
Trung.

Hi @kolaganikrishnaprasa

Most likely you have no ~/.kube/config file on the worker nodes. kubectl default is to try port 8080 with no authentication.

Generally you would not need to run kubectl from a worker node anyway.

Cc: @trung-kodekloud

2 Likes

Thank you alot Alistair for your confirmation.

I really appreciate your proper response. :pray::blush: