accessing eks cluster from aws console

after creating EKS cluster, granded user the one created the cluster only. in order the console user other then creator of the cluster to see the details, need to be granted specifiacally. below code allow every aws console user granded to kubernetes. be careful its not for production purpose. ready only role need to be created for real case.

either one of the below

  • option 1
kubectl edit configmap aws-auth -n kube-system

And add below fields to the same depth as mapRoles

mapUsers: |
  - userarn: arn:aws:iam::[account_id]:root
  groups:
  - system:masters

  • option 2
eksctl create iamidentitymapping --cluster [cluster-name] --arn arn:aws:iam::[account_id]:role/rolename --group system:masters --username admin

Comments