Add enableServicesElection env variable.
This commit is contained in:
parent
b377dbb96f
commit
ca3460c762
3 changed files with 11 additions and 0 deletions
|
@ -39,6 +39,12 @@ kube_vip_services_enabled: false
|
|||
[additional manual steps](https://kube-vip.io/docs/usage/cloud-provider/)
|
||||
are needed.
|
||||
|
||||
If using [local traffic policy](https://kube-vip.io/docs/usage/kubernetes-services/#external-traffic-policy-kube-vip-v050):
|
||||
|
||||
```yaml
|
||||
kube_vip_enableServicesElection: true
|
||||
```
|
||||
|
||||
If using [ARP mode](https://kube-vip.io/docs/installation/static/#arp) :
|
||||
|
||||
```yaml
|
||||
|
|
|
@ -80,6 +80,7 @@ kube_vip_bgp_peerpass:
|
|||
kube_vip_bgp_peeras: 65000
|
||||
kube_vip_bgppeers:
|
||||
kube_vip_address:
|
||||
kube_vip_enableServicesElection: false
|
||||
|
||||
# Requests for load balancer app
|
||||
loadbalancer_apiserver_memory_requests: 32M
|
||||
|
|
|
@ -68,6 +68,10 @@ spec:
|
|||
{% endif %}
|
||||
- name: address
|
||||
value: {{ kube_vip_address | to_json }}
|
||||
{% if kube_vip_enableServicesElection %}
|
||||
- name: enableServicesElection
|
||||
value: "true"
|
||||
{% endif %}
|
||||
image: {{ kube_vip_image_repo }}:{{ kube_vip_image_tag }}
|
||||
imagePullPolicy: {{ k8s_image_pull_policy }}
|
||||
name: kube-vip
|
||||
|
|
Loading…
Reference in a new issue