Michal Ptacek | 8913462 | 2018-12-19 12:10:34 +0000 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Config |
| 3 | clusters: |
| 4 | - cluster: |
| 5 | api-version: v1 |
| 6 | insecure-skip-tls-verify: true |
| 7 | server: "https://{{ ansible_host }}:8080/r/projects/{{ k8s_env_id }}/kubernetes:6443" |
| 8 | name: "{{ app_name }}" |
| 9 | contexts: |
| 10 | - context: |
| 11 | cluster: "{{ app_name }}" |
| 12 | user: "{{ app_name }}" |
| 13 | name: "{{ app_name }}" |
| 14 | current-context: "{{ app_name }}" |
| 15 | users: |
| 16 | - name: "{{ app_name }}" |
| 17 | user: |
| 18 | token: "{{ (['Basic', [key_public, key_private] | join(':') | b64encode] | join(' ')) | b64encode }}" |
| 19 | |