Files
terraform-aws-eks/templates/kubeconfig.tpl
2018-06-27 19:57:43 -04:00

28 lines
496 B
Smarty

apiVersion: v1
preferences: {}
kind: Config
clusters:
- cluster:
server: ${endpoint}
certificate-authority-data: ${cluster_auth_base64}
name: kubernetes
contexts:
- context:
cluster: ${cluster_name}
user: aws
name: aws
current-context: aws
users:
- name: aws
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
command: heptio-authenticator-aws
args:
- "token"
- "-i"
- "${cluster_name}"