diff options
| author | alex <alex@pdp7.net> | 2023-03-11 18:51:17 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-03-11 18:51:17 +0100 |
| commit | 0cac54b4fd9a90c8d8d4b983be6a5ce80abbe4d6 (patch) | |
| tree | f5afb702e29689581c1a2c023196a499b964d4c4 | |
| parent | 70536cc66f0881aba8688e1ef8779ce78c229ef4 (diff) | |
Fix kubeconfig dumbness
| -rw-r--r-- | personal_infra/playbooks/roles/talos/tasks/main.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/personal_infra/playbooks/roles/talos/tasks/main.yaml b/personal_infra/playbooks/roles/talos/tasks/main.yaml index 74d19d3f..f0d48c76 100644 --- a/personal_infra/playbooks/roles/talos/tasks/main.yaml +++ b/personal_infra/playbooks/roles/talos/tasks/main.yaml @@ -1,7 +1,7 @@ --- - name: check node ready k8s_info: - context: "{{ talos_host.talos_cluster }}@admin" + context: "admin@{{ talos_host.talos_cluster }}" kind: Node wait: true wait_condition: @@ -74,14 +74,15 @@ - name: get kubeconfig command: - cmd: talosctl kubeconfig --talosconfig talos/talosconfig-{{ talos_host.talos_cluster }} --nodes {{ inventory_hostname }} -e {{ inventory_hostname }} --force-context-name {{ talos_host.talos_cluster }}@admin + cmd: talosctl kubeconfig --talosconfig talos/talosconfig-{{ talos_host.talos_cluster }} --nodes {{ inventory_hostname }} -e {{ inventory_hostname }} -f chdir: "{{ inventory_dir }}" delegate_to: 127.0.0.1 when: "not 'resources' in nodes or nodes.resources|length == 0" + throttle: 1 - name: wait node ready k8s_info: - context: "{{ talos_host.talos_cluster }}@admin" + context: "admin@{{ talos_host.talos_cluster }}" kind: Node wait: true wait_condition: |
