Page MenuHomePhabricator

kubectl fails "The connection to the server localhost:8080 was refused" on tools-sgebastion-07
Closed, InvalidPublic

Description

williamavery@tools-sgebastion-07:~$ kubectl get pods
The connection to the server localhost:8080 was refused - did you specify the right host or port?

This was working a couple of hours ago.

Event Timeline

taavi edited projects, added Toolforge; removed Cloud-Services.
taavi subscribed.

You need to become to a tool account. Only tool accounts are provisioned Kubernetes credentials, and this (rather confusing) error message comes up because kubectl uses a default server address as it can't read the correct one from a config file because it does not exist.