mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-14 23:47:30 -02:30
Feat: make kube-vip BGP source configurable (#13044)
This commit is contained in:
@@ -6,6 +6,17 @@
|
||||
- kube_proxy_mode == 'ipvs' and not kube_proxy_strict_arp
|
||||
- kube_vip_arp_enabled
|
||||
|
||||
- name: Kube-vip | Check mutually exclusive BGP source settings
|
||||
vars:
|
||||
kube_vip_bgp_sourceip_normalized: "{{ kube_vip_bgp_sourceip | default('', true) | string | trim }}"
|
||||
kube_vip_bgp_sourceif_normalized: "{{ kube_vip_bgp_sourceif | default('', true) | string | trim }}"
|
||||
assert:
|
||||
that:
|
||||
- kube_vip_bgp_sourceip_normalized == '' or kube_vip_bgp_sourceif_normalized == ''
|
||||
fail_msg: "kube-vip allows only one of kube_vip_bgp_sourceip or kube_vip_bgp_sourceif."
|
||||
when:
|
||||
- kube_vip_bgp_enabled | default(false)
|
||||
|
||||
- name: Kube-vip | Check if super-admin.conf exists
|
||||
stat:
|
||||
path: "{{ kube_config_dir }}/super-admin.conf"
|
||||
|
||||
Reference in New Issue
Block a user