Make the port of kube-vip dynamic based on the kube_apiserver_port (#9414)
variable Fix wrong referenced variable on bgp_peers Fix bgp_peeras field to be a string Set default value for bgp_peeras
This commit is contained in:
parent
9fdda7eca8
commit
1901b512d2
2 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ kube_vip_bgp_routerid:
|
||||||
kube_vip_local_as: 65000
|
kube_vip_local_as: 65000
|
||||||
kube_vip_bgp_peeraddress:
|
kube_vip_bgp_peeraddress:
|
||||||
kube_vip_bgp_peerpass:
|
kube_vip_bgp_peerpass:
|
||||||
kube_vip_bgp_peeras:
|
kube_vip_bgp_peeras: 65000
|
||||||
kube_vip_bgppeers:
|
kube_vip_bgppeers:
|
||||||
kube_vip_address:
|
kube_vip_address:
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ spec:
|
||||||
- name: vip_arp
|
- name: vip_arp
|
||||||
value: {{ kube_vip_arp_enabled | string | to_json }}
|
value: {{ kube_vip_arp_enabled | string | to_json }}
|
||||||
- name: port
|
- name: port
|
||||||
value: "6443"
|
value: {{ kube_apiserver_port | string | to_json }}
|
||||||
{% if kube_vip_interface %}
|
{% if kube_vip_interface %}
|
||||||
- name: vip_interface
|
- name: vip_interface
|
||||||
value: {{ kube_vip_interface | string | to_json }}
|
value: {{ kube_vip_interface | string | to_json }}
|
||||||
|
@ -60,10 +60,10 @@ spec:
|
||||||
- name: bgp_peerpass
|
- name: bgp_peerpass
|
||||||
value: {{ kube_vip_bgp_peerpass | to_json }}
|
value: {{ kube_vip_bgp_peerpass | to_json }}
|
||||||
- name: bgp_peeras
|
- name: bgp_peeras
|
||||||
value: {{ kube_vip_bgp_peeras | to_json }}
|
value: {{ kube_vip_bgp_peeras | string | to_json }}
|
||||||
{% if kube_vip_bgppeers %}
|
{% if kube_vip_bgppeers %}
|
||||||
- name: bgp_peers
|
- name: bgp_peers
|
||||||
value: {{ kube_vip_bgp_peeras | join(',') | to_json }}
|
value: {{ kube_vip_bgppeers | join(',') | to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- name: address
|
- name: address
|
||||||
|
|
Loading…
Reference in a new issue