fix: Use private IP for k3s HA cluster join and advertise
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user