Skip to content

Instantly share code, notes, and snippets.

@akash-gautam
Created December 24, 2019 14:04
Show Gist options
  • Save akash-gautam/ca758d58091e7d9238fb0c64f79f82bc to your computer and use it in GitHub Desktop.
Save akash-gautam/ca758d58091e7d9238fb0c64f79f82bc to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: <ARN of instance role (not instance profile)>
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment