Problem for access eks from another IAM user

0

i am create eks using terraform and delete that user after that create new user and i want to access that eks i got error even though i have loged in error: You must be logged in to the server (Unauthorized)

1 回答
0

I think the easiest way to gain access to cluster is to re-create the IAM user you used to create the cluster. That should give you access to edit config and grant access to other users as described in https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html

Or if that is not possible, aws eks update-kubeconfig could reset the configuration. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/eks/update-kubeconfig.html

profile picture
专家
Kallu
已回答 7 个月前

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

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

回答问题的准则