Skip to content

Instantly share code, notes, and snippets.

@guygrip
Created May 18, 2022
Embed
What would you like to do?
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: arn:aws:iam::111122223333:role/eksctl-my-cluster-nodegroup-standard-wo-NodeInstanceRole-1WP3NUE3O6UCF
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
mapUsers: |
- userarn: arn:aws:iam::111122223333:user/admin
username: admin
groups:
- system:masters
- userarn: arn:aws:iam::444455556666:user/ops-user
username: ops-user
groups:
- eks-console-dashboard-full-access-group
- userarn: arn:aws:iam::444455556666:user/ops-user2
username: ops-user2
groups:
- eks-console-dashboard-restricted-access-group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment