• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


25 Mar, 2025

Updated at 18 May, 2025

How to fix this unhandled error when building podnetwork?

I want to configure my cluster (k8s). After I placed these commands on my Ubuntu server and want to check my nodes I receive the following error:

Command:

~$ export KUBECONFIG=/etc/kubernetes/admin.conf

~$ sudo kubectl get nodes

Output: E0325 11:13:57.789901 2075 memcache.go:265] "Unhandled Error" err="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" E0325 11:13:57.791801 2075 memcache.go:265] "Unhandled Error" err="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" E0325 11:13:57.793112 2075 memcache.go:265] "Unhandled Error" err="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" E0325 11:13:57.794502 2075 memcache.go:265] "Unhandled Error" err="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" E0325 11:13:57.795917 2075 memcache.go:265] "Unhandled Error" err="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" The connection to the server localhost:8080 was refused - did you specify the right host or port?

At first I thought is was because of my /etc/hosts misconfig, but it all seems good right.

enter image description here