- Published on
- Authors
- koskila
Any kubectl command throws "Unhandled Error" err="couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused" - what do?
This article explains a fix to a - frankly possibly a little bit dumb - problem, where all kubectl commands suddenly throw an error along the lines of "couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused". Since I don't ever have Kubernetes running locally, and I actually don't even change kubectl connections, I was quite confused by this.
![Cover image for Any kubectl command throws "Unhandled Error" err="couldn't get current server API group list: Get "http://localhost:8080/api?timeout=32s": dial tcp [::1]:8080: connect: connection refused" - what do?](/cdn-cgi/image/sharpen=1,format=auto,quality=90,slow-connection-quality=50,onerror=redirect,fit=scale-down,width=1920/images/16596-xlkgokvbupmzma5ii2ol1.jpg)























