Localhost:8080 was refused

Hello all,

I am a total noob regarding Kubernetes so please forgive me if this is an obvious one and I’m just not seeing it.

I’ve been following this GUIDE to set up a cluster of Raspberry Pi’s.

I believe I have the server up and running, but both of my agents are returning an error when I run kubectl get nodes -o wide they both return The connection to the server localhost:8080 was refused - did you specify the right host or port?

Any guidance you can lend would be most appreciated.


On my cluster, I receive the same message when running the command from nodes instead of the master, maybe that’s doing it?

@Magnus_Grongaard yes this is what is causing it. I learned that the other night with help from the Rancher Slack channel. Forgot to circle back and update this post.