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
已提问 1 年前6130 查看次数
1 回答
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
已回答 1 年前
profile picture
专家
已审核 15 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则