feat: switch kubeconfig to tailnet endpoint and deploy Hetzner CSI
All checks were successful
Deploy Cluster / Terraform (push) Successful in 51s
Deploy Cluster / Ansible (push) Successful in 3m12s

This commit is contained in:
2026-03-01 17:12:12 +00:00
parent 54717cccad
commit 2bc9749b81
5 changed files with 48 additions and 3 deletions

View File

@@ -82,13 +82,20 @@
roles:
- ccm
- name: Deploy Hetzner CSI
hosts: control_plane[0]
become: true
roles:
- csi
- name: Finalize
hosts: localhost
connection: local
tasks:
- name: Update kubeconfig server address
command: |
sed -i 's/127.0.0.1/{{ hostvars[groups["control_plane"][0]]["k3s_primary_public_ip"] }}/g' ../outputs/kubeconfig
sed -i 's/127.0.0.1/{{ groups["control_plane"][0] }}.{{ tailscale_tailnet }}/g' ../outputs/kubeconfig
changed_when: true
- name: Display success message