fix: Use private IP for k3s HA cluster join and advertise
Some checks failed
Deploy Cluster / Terraform (push) Successful in 19s
Deploy Cluster / Ansible (push) Failing after 8m11s

This commit is contained in:
2026-03-01 00:32:03 +00:00
parent ac034e1638
commit 1db435cd42
2 changed files with 7 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
environment:
INSTALL_K3S_VERSION: "{{ k3s_version if k3s_version != 'latest' else '' }}"
K3S_TOKEN: "{{ k3s_token }}"
command: /tmp/install-k3s.sh server --cluster-init
command: /tmp/install-k3s.sh server --cluster-init --advertise-address={{ k3s_primary_ip }}
when:
- not k3s_service.stat.exists
- k3s_primary | default(false)