fix: use private network IPs for k3s join and node addressing
Some checks failed
Deploy Cluster / Terraform (push) Successful in 24s
Deploy Cluster / Ansible (push) Failing after 8m13s

This commit is contained in:
2026-03-01 00:42:55 +00:00
parent 1db435cd42
commit 27b29322cd
5 changed files with 11 additions and 6 deletions

View File

@@ -2,3 +2,4 @@
k3s_version: latest
k3s_server_url: ""
k3s_token: ""
k3s_node_ip: ""

View File

@@ -16,7 +16,7 @@
INSTALL_K3S_VERSION: "{{ k3s_version if k3s_version != 'latest' else '' }}"
K3S_URL: "{{ k3s_server_url }}"
K3S_TOKEN: "{{ k3s_token }}"
command: /tmp/install-k3s.sh agent
command: /tmp/install-k3s.sh agent --node-ip {{ k3s_node_ip }}
args:
creates: /usr/local/bin/k3s-agent
when: not k3s_agent_binary.stat.exists