Browse Source
Enable control plane load balancing for kube-vip (#9785)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
pull/9789/head
ERIK
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
11 additions and
0 deletions
-
docs/kube-vip.md
-
roles/kubernetes/node/defaults/main.yml
-
roles/kubernetes/node/templates/manifests/kube-vip.manifest.j2
|
|
@ -64,3 +64,9 @@ kube_vip_bgppeers: |
|
|
|
# kube_vip_bgp_peerpass: |
|
|
|
# kube_vip_bgp_peeras: |
|
|
|
``` |
|
|
|
|
|
|
|
If using [control plane load-balancing](https://kube-vip.io/docs/about/architecture/#control-plane-load-balancing): |
|
|
|
|
|
|
|
```yaml |
|
|
|
kube_vip_lb_enable: true |
|
|
|
``` |
|
|
@ -87,6 +87,7 @@ kube_vip_bgp_peeras: 65000 |
|
|
|
kube_vip_bgppeers: |
|
|
|
kube_vip_address: |
|
|
|
kube_vip_enableServicesElection: false |
|
|
|
kube_vip_lb_enable: false |
|
|
|
|
|
|
|
# Requests for load balancer app |
|
|
|
loadbalancer_apiserver_memory_requests: 32M |
|
|
|
|
|
@ -71,6 +71,10 @@ spec: |
|
|
|
{% if kube_vip_enableServicesElection %} |
|
|
|
- name: enableServicesElection |
|
|
|
value: "true" |
|
|
|
{% endif %} |
|
|
|
{% if kube_vip_lb_enable %} |
|
|
|
- name: lb_enable |
|
|
|
value: "true" |
|
|
|
{% endif %} |
|
|
|
image: {{ kube_vip_image_repo }}:{{ kube_vip_image_tag }} |
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }} |
|
|
|