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

19 lines
460 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 }}
name: {{ username }}@{{ cluster }}
current-context: {{ username }}@{{ cluster }}
kind: Config
preferences: {}
users:
- name: {{ username }}
user:
client-certificate-data: {{ user_cert_data }}
client-key-data: {{ user_key_data }}