Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (12.7k points)

Hi, I referred a tutorial http://kubernetes.io/docs/hellonode/. . The issue is when I try to run I get the following error : "The connection to the server localhost:8080 was refused"

Anyone knows how to fix this ?

1 Answer

0 votes
by (29.5k points)

Hi, I believe the issue lies with your 'kubeconfig' file. I believe running the following command will fix your issue :

gcloud container clusters get-credentials "CLUSTER NAME" 

I faced a similar issue while I was taking Kubernetes training and running this command fixed it.

hope it helps

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...