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
gefragt vor einem Jahr6130 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor 15 Tagen

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen