I created the eks cluster trying to connect it with local cli, for that, I installed the aws-cli and also provide the right ‘aws configure’ credentials. The user which I am using to connect with the aws have the EKS related policy. Still I am getting the following Error …
E0209 21:09:44.893284 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:45.571635 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:46.380542 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:47.105407 2465691 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
E0209 21:09:47.869614 2465691 memcache.go:238] 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)
3
Answers
I successfully resolve it via following the document guide: https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html
The same error happened to me on k3d. Seems like the certificates were expired. I tried this and it worked
Well in my case, the aws keys with which I created the cluster and with which I configured the kubectl were different. The two of them were different aws identities.
To give another user permission to access the control pane follow this
How do I resolve the error You must be logged in to the server Unauthorized when I connect to the Amazon EKS API server.
This solved my problem