DEV Community

Cover image for Troubleshooting "Did you specify the right host or port?" Amazon EKS Error:
Jared Nielsen
Jared Nielsen

Posted on • Edited on

Troubleshooting "Did you specify the right host or port?" Amazon EKS Error:

Let's say you're working through the Amazon EKS tutorial and, when you reach step 2.2 and run kubectl get svc, you get the following error:

E1214 14:39:13.139525  398989 memcache.go:238] 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
E1214 14:39:13.139752  398989 memcache.go:238] 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
E1214 14:39:13.141035  398989 memcache.go:238] 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
E1214 14:39:13.142235  398989 memcache.go:238] 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
E1214 14:39:13.143744  398989 memcache.go:238] 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?
Enter fullscreen mode Exit fullscreen mode

The tutorial directs you to this troubleshooting guide, but if you don't find the answer there, try the following:

aws eks update-kubeconfig --name <EKS_Cluster_Name> --region <Region_Name>
Enter fullscreen mode Exit fullscreen mode

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more