The connection to the server localhost:8080 was refused – did you specify the right host or port?1 min read

You might have encountered the below error when you are trying to access the Kubernetes cluster from any nodes.

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

This is because you don’t have the kube/.confg file to connect the Kubernetes cluster.

You can copy the .kube/config file from /etc/kubernetes/admin.conf file.

 

cp /etc/kubernetes/admin.conf ~/.kube/confg

Make sure that you have installed kubctl in your system to access the Kubernetes cluster.

 

 

 

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me
We need your support!!
Other Amount:
techrunnr.com:
#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

You may also like...

Leave a Reply