I can't connect to my EKS cluster

0

I created a EKS cluster with a default VPC and mostly the default settings from the console. Whenever I run a kubectl command, it doesn't connect with my EKS cluster giving me the error "You must be logged in to the server (the server has asked for the client to provide credentials)" . I have gone through this documentation https://aws.amazon.com/premiumsupport/knowledge-center/eks-api-server-unauthorized-error/, without finding any solution.

Can someone please help?

Ayoola
asked a year ago5933 views
1 Answer
0

It sounds like your kubectl may not be configured properly for Amazon EKS, or the IAM principal credentials that you're using don't map to a Kubernetes RBAC user with sufficient permissions in your Amazon EKS cluster. You could try, as the cluster administrator, granting the appropriate level of RBAC privileges to individual Kubernetes users. Check if this helps: Granting access to an IAM principal to view Kubernetes resources on a cluster.

AWS
answered a year ago
profile picture
EXPERT
reviewed 2 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions