ansible-create-k8s-user/templates/config.j2

20 lines
459 B
Plaintext
Raw Normal View History

2023-03-11 17:18:57 +00:00
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: {{ kubernetes_cad }}
server: {{ kubernetes_server }}
name: {{ cluster }}
contexts:
- context:
cluster: {{ cluster }}
user: {{ username }}@{{ cluster }}
2023-07-16 20:07:38 +00:00
name: {{ cluster }}
current-context: {{ cluster }}
2023-03-11 17:18:57 +00:00
kind: Config
preferences: {}
users:
- name: {{ username }}@{{ cluster }}
2023-03-11 17:18:57 +00:00
user:
client-certificate-data: {{ user_cert_data }}
client-key-data: {{ user_key_data }}