Skip to content

Commit

Permalink
k3s: fix single control plane deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Aug 9, 2024
1 parent 18cfce0 commit ff1d2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/cluster/k3s/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export IP={{ "$(curl -s ifconfig.me)" }}
{% elif ctlplanes > 1 %}
export IP={{ api_ip }}
{% else %}
export IP={{ first_ip }}
export IP=$(hostname -I | cut -f1 -d" ")
{% endif %}

curl -sfL https://get.k3s.io | {{ install_k3s_args }} K3S_TOKEN={{ token }} sh -s - server {{ '--cluster-init' if ctlplanes > 1 else '' }} {{ extra_args|join(" ") }} {{ '--tls-san $IP' if not cloud_lb and config_type in ['aws', 'gcp', 'ibmcloud'] else '' }}
Expand Down

0 comments on commit ff1d2fd

Please sign in to comment.