I am facing the same issue. How to fix it.
I used eksctl to create the cluster on AWS
eksctl create cluster --name test-cluster --version 1.32 --region us-east-1 --nodegroup-name linux-nodes --node-type t2.micro --nodes 2 -v 4
$ kubectl get pods
E0506 03:39:36.152192 13769 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: the server has asked for the client to provide credentials"
E0506 03:39:36.948946 13769 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: the server has asked for the client to provide credentials"
E0506 03:39:37.730203 13769 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: the server has asked for the client to provide credentials"
E0506 03:39:38.509368 13769 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: the server has asked for the client to provide credentials"
E0506 03:39:39.283091 13769 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: the server has asked for the client to provide credentials"
error: You must be logged in to the server (the server has asked for the client to provide credentials)