Skip to content
Snippets Groups Projects
Unverified Commit a656b7ed authored by Louis Tu's avatar Louis Tu Committed by GitHub
Browse files

Add kube_vip_lb_fwdmethod option for kube-vip (#10762)


Signed-off-by: default avatartu1h <lihai.tu@daocloud.io>
parent 2e8b72e2
No related branches found
No related tags found
No related merge requests found
......@@ -70,3 +70,9 @@ If using [control plane load-balancing](https://kube-vip.io/docs/about/architect
```yaml
kube_vip_lb_enable: true
```
In addition, [load-balancing method](https://kube-vip.io/docs/installation/flags/#environment-variables) could be changed:
```yaml
kube_vip_lb_fwdmethod: masquerade
```
......@@ -86,6 +86,7 @@ kube_vip_bgppeers:
kube_vip_address:
kube_vip_enableServicesElection: false
kube_vip_lb_enable: false
kube_vip_lb_fwdmethod: local
# Requests for load balancer app
loadbalancer_apiserver_memory_requests: 32M
......
......@@ -77,6 +77,10 @@ spec:
{% if kube_vip_lb_enable %}
- name: lb_enable
value: "true"
{% endif %}
{% if kube_vip_lb_fwdmethod %}
- name: lb_fwdmethod
value: {{ kube_vip_lb_fwdmethod | string | to_json }}
{% endif %}
image: {{ kube_vip_image_repo }}:{{ kube_vip_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment