mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-20 07:41:18 +02:00
forgot to add templates
This commit is contained in:
27
templates/kubeconfig.tpl
Normal file
27
templates/kubeconfig.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: v1
|
||||
preferences: {}
|
||||
kind: Config
|
||||
|
||||
clusters:
|
||||
- cluster:
|
||||
server: ${endpoint}
|
||||
certificate-authority-data: ${cluster_auth_base64}
|
||||
name: kubernetes
|
||||
|
||||
contexts:
|
||||
- context:
|
||||
cluster: kubernetes
|
||||
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}"
|
||||
Reference in New Issue
Block a user