1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
You can check eks authentication mode from this link: https://docs.aws.amazon.com/eks/latest/userguide/setting-up-access-entries.html, for examples: 'API_AND_CONFIG_MAP','CONFIG_MAP','API'.
If 'API_AND_CONFIG_MAP' or 'API' , you can create new access, add iam access to the cluster: https://docs.aws.amazon.com/eks/latest/userguide/creating-access-entries.html.
if 'CONFIG_MAP', you must update auth-configmap, before that you should find out the user/role who created this eks cluster, and set aws cli credentials :https://docs.aws.amazon.com/eks/latest/userguide/auth-configmap.html
Relevant content
- asked an hour ago
- asked a year ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago

Hi @whb, It doe not solve the problem. I got the problem solved I found in EKS cluster, there is a section tab "Access" and there a user need to be added who can right permission. this issue arise because cluster is directly created on aws console and then trying to connect from cli.
But anyways, thanks for reply.
Hello Nick,
If you solved by add user in "Access" section tab, the EKS cluster auth mode is 'API_AND_CONFIG_MAP' or 'API'. The user who created on aws console is admin of the cluster by default, if you want to connect from cli, you should use this user's aksk for cli or add cli user/role in "Access" section tab.