Couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused

In my case, this was caused by using sudo with the kubectl command. Without sudo it worked fine again.

Hopefully this helps someone else.

1 Like