mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-29 12:12:38 +01:00
With the kube_vip_bgp parameter it is possible to enable the kube-vip BGP support (https://kube-vip.io/docs/modes/bgp/). The configuration is possible with the following new parameters: * kube_vip_bgp_routerid * kube_vip_bgp_as * kube_vip_bgp_peeraddress * kube_vip_bgp_peeras Signed-off-by: Christian Berendt <berendt@osism.tech>
21 lines
807 B
YAML
21 lines
807 B
YAML
---
|
|
# If you want to explicitly define an interface that ALL control nodes
|
|
# should use to propagate the VIP, define it here. Otherwise, kube-vip
|
|
# will determine the right interface automatically at runtime.
|
|
kube_vip_iface: null
|
|
|
|
# Name of the master group
|
|
group_name_master: master
|
|
|
|
# yamllint disable rule:line-length
|
|
server_init_args: >-
|
|
{% if groups[group_name_master | default('master')] | length > 1 %}
|
|
{% if ansible_hostname == hostvars[groups[group_name_master | default('master')][0]]['ansible_hostname'] %}
|
|
--cluster-init
|
|
{% else %}
|
|
--server https://{{ hostvars[groups[group_name_master | default('master')][0]].k3s_node_ip | split(",") | first | ansible.utils.ipwrap }}:6443
|
|
{% endif %}
|
|
--token {{ k3s_token }}
|
|
{% endif %}
|
|
{{ extra_server_args | default('') }}
|