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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay