Kubectl error couldn’t get current server API group list on WSL2

Good afternoon everybody!

I am in need of assistance with my kubernetes clusters running on WSL2 and Docker Desktop.

I can’t get to connect to my working space to my clusters.

Whenever I try to get the kubectl get pods, it appears the following message:

E0220 20:42:13.292649   76226 memcache.go:265] couldn't get current server API group list: Get "https://kubernetes.docker.internal:6443/api?timeout=32s": EOF

Any advice in how to solve this issue?

Cluster information:

Kubernetes version: 1.29.1
Cloud being used: bare-metal
Installation method: docker desktop
Host OS: Windows 11

1 Like