mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-26 03:28:28 +03:00
Feat: make kube-vip BGP source configurable (#13044)
This commit is contained in:
@@ -85,6 +85,16 @@ spec:
|
||||
value: {{ kube_vip_bgp_peerpass | to_json }}
|
||||
- name: bgp_peeras
|
||||
value: {{ kube_vip_bgp_peeras | string | to_json }}
|
||||
{% set kube_vip_bgp_sourceip_normalized = kube_vip_bgp_sourceip | default('', true) | string | trim %}
|
||||
{% if kube_vip_bgp_sourceip_normalized %}
|
||||
- name: bgp_sourceip
|
||||
value: {{ kube_vip_bgp_sourceip_normalized | to_json }}
|
||||
{% endif %}
|
||||
{% set kube_vip_bgp_sourceif_normalized = kube_vip_bgp_sourceif | default('', true) | string | trim %}
|
||||
{% if kube_vip_bgp_sourceif_normalized %}
|
||||
- name: bgp_sourceif
|
||||
value: {{ kube_vip_bgp_sourceif_normalized | to_json }}
|
||||
{% endif %}
|
||||
{% if kube_vip_bgppeers %}
|
||||
- name: bgp_peers
|
||||
value: {{ kube_vip_bgppeers | join(',') | to_json }}
|
||||
|
||||
Reference in New Issue
Block a user