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
posta un anno fa6130 visualizzazioni
1 Risposta
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
con risposta un anno fa
profile picture
ESPERTO
verificato 15 giorni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande