diff --git a/roles/k3s_server/defaults/main.yml b/roles/k3s_server/defaults/main.yml index 46f1528c..349889b5 100644 --- a/roles/k3s_server/defaults/main.yml +++ b/roles/k3s_server/defaults/main.yml @@ -4,6 +4,9 @@ # will determine the right interface automatically at runtime. kube_vip_iface: null +# Enables ARP broadcasts from Leader +kube_vip_arp: true + # Name of the master group group_name_master: master diff --git a/roles/k3s_server/templates/vip.yaml.j2 b/roles/k3s_server/templates/vip.yaml.j2 index 1092557a..47d4e8f5 100644 --- a/roles/k3s_server/templates/vip.yaml.j2 +++ b/roles/k3s_server/templates/vip.yaml.j2 @@ -27,7 +27,7 @@ spec: - manager env: - name: vip_arp - value: "true" + value: "{{ 'true' if kube_vip_arp | bool else 'false' }}" - name: port value: "6443" {% if kube_vip_iface %}