ansible-create-k8s-user/templates/config.j2
2023-07-20 17:55:33 +02:00

20 lines
459 B
Django/Jinja

apiVersion: v1
clusters:
- cluster:
certificate-authority-data: {{ kubernetes_cad }}
server: {{ kubernetes_server }}
name: {{ cluster }}
contexts:
- context:
cluster: {{ cluster }}
user: {{ username }}@{{ cluster }}
name: {{ cluster }}
current-context: {{ cluster }}
kind: Config
preferences: {}
users:
- name: {{ username }}@{{ cluster }}
user:
client-certificate-data: {{ user_cert_data }}
client-key-data: {{ user_key_data }}