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:
Wouter Goedhart 2022-10-24 03:00:24 +02:00 committed by GitHub
parent 9fdda7eca8
commit 1901b512d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@ kube_vip_bgp_routerid:
kube_vip_local_as: 65000
kube_vip_bgp_peeraddress:
kube_vip_bgp_peerpass:
kube_vip_bgp_peeras:
kube_vip_bgp_peeras: 65000
kube_vip_bgppeers:
kube_vip_address:

View file

@ -13,7 +13,7 @@ spec:
- name: vip_arp
value: {{ kube_vip_arp_enabled | string | to_json }}
- name: port
value: "6443"
value: {{ kube_apiserver_port | string | to_json }}
{% if kube_vip_interface %}
- name: vip_interface
value: {{ kube_vip_interface | string | to_json }}
@ -60,10 +60,10 @@ spec:
- name: bgp_peerpass
value: {{ kube_vip_bgp_peerpass | to_json }}
- name: bgp_peeras
value: {{ kube_vip_bgp_peeras | to_json }}
value: {{ kube_vip_bgp_peeras | string | to_json }}
{% if kube_vip_bgppeers %}
- name: bgp_peers
value: {{ kube_vip_bgp_peeras | join(',') | to_json }}
value: {{ kube_vip_bgppeers | join(',') | to_json }}
{% endif %}
{% endif %}
- name: address