dockercontainersyamlkuberneteskubectl

kubectl: Connection to server was refused


When I run kubectl run ... or any command I get an error message saying

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

What exactly is this error and how to resolve it?


Solution

  • I really don't know much about kubectl... But the various reasons you have a connection refused to localhost I know of are as follows

    My two cents!