summaryrefslogtreecommitdiffstats
path: root/ansible/roles/kubectl/templates/kube_config.j2
blob: 586c59d4d8fd261a067b638b6c7cb871bac7c4ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
apiVersion: v1
kind: Config
clusters:
- cluster:
    api-version: v1
    insecure-skip-tls-verify: true
    server: "{{ kube_server }}"
  name: "{{ app_name }}"
contexts:
- context:
    cluster: "{{ app_name }}"
    user: "{{ app_name }}"
  name: "{{ app_name }}"
current-context: "{{ app_name }}"
users:
- name: "{{ app_name }}"
  user:
    token: "{{ (['Basic', [key_public, key_private] | join(':') | b64encode] | join(' ')) | b64encode }}"