Bugfix, bind address is for listener

This commit is contained in:
Xan Manning 2020-08-01 14:17:20 +01:00
parent 1f8429a77b
commit 230aaa110c

View file

@ -12,6 +12,9 @@ ExecStartPre=-/sbin/modprobe overlay
ExecStart={{ k3s_install_dir }}/k3s
{% if k3s_control_node %}
server{{ ' --disable-agent' if not k3s_control_workers else '' }}
{% if k3s_bind_address is defined %}
--bind-address {{ k3s_bind_address }}
{% endif %}
{% if k3s_non_root is defined and k3s_non_root %}
--rootless
{% endif %}
@ -131,9 +134,6 @@ ExecStart={{ k3s_install_dir }}/k3s
{% if k3s_flannel_interface is defined and not k3s_no_flannel %}
--flannel-iface {{ k3s_flannel_interface }}
{% endif %}
{% if k3s_bind_address is defined %}
--bind-address {{ k3s_bind_address }}
{% endif %}
{% if k3s_node_name is defined %}
--node-name {{ k3s_node_name }}
{% endif %}