Skip to content

Commit

Permalink
Add enableServicesElection env variable. (kubernetes-sigs#9595)
Browse files Browse the repository at this point in the history
  • Loading branch information
mKlaris authored Jan 3, 2023
1 parent 4d3104b commit 050fde6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/kube-vip.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions roles/kubernetes/node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 050fde6

Please sign in to comment.