k3s_server: add kube_vip_arp parameter

With the kube_vip_arp parameter it is possible to set or unset the
vip_arp environment variable of the kube-vip-ds daemonset. The value of
the kube_vip_arp is true by default to not change the existing default.

Signed-off-by: Christian Berendt <berendt@osism.tech>
This commit is contained in:
Christian Berendt
2024-07-29 14:19:59 +02:00
parent e48bb6df26
commit 5a9d8fad74
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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 %}