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
demandé il y a un an6130 vues
1 réponse
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
répondu il y a un an
profile picture
EXPERT
vérifié il y a 15 jours

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions