Skip to content

Commit

Permalink
k3s_server: add kube_vip_arp parameter (#550)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Techno Tim <[email protected]>
  • Loading branch information
berendt and timothystewart6 authored Jul 29, 2024
1 parent 6cee0e9 commit 668d7fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/k3s_server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion roles/k3s_server/templates/vip.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 668d7fb

Please sign in to comment.