Skip to content

Instantly share code, notes, and snippets.

@diogoaurelio
Created November 12, 2018 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogoaurelio/a2349b3aaecda96bf4bc255c49fe4605 to your computer and use it in GitHub Desktop.
Save diogoaurelio/a2349b3aaecda96bf4bc255c49fe4605 to your computer and use it in GitHub Desktop.
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: <certificateAuthority.data from describe-cluster>
server: <endpoint from describe-cluster>
name: <cluster-name>
contexts:
- context:
cluster: <cluster-name>
user: aws
name: aws
current-context: aws
kind: Config
preferences: {}
users:
- name: aws
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
args:
- token
- -i
- <cluster-name>
command: heptio-authenticator-aws
env:
- name: AWS_PROFILE
value: <profile-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment