Metallb --lb-class cmd arg to support multiple LoadBalancer implementations (#10550)

* metallb --lb-class cmd arg to support multiple load balancer implementations

* removed loadbalancer_class from metallb_config; metallb_loadbalancer_class in role defaults
pull/10606/head
Seal1998 2023-11-08 14:43:48 +03:00 committed by GitHub
parent b3f6d05131
commit 6305dd39e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -13,3 +13,4 @@ metallb_speaker_tolerations:
key: node-role.kubernetes.io/control-plane
operator: Exists
metallb_controller_tolerations: []
metallb_loadbalancer_class: ""

View File

@ -1724,6 +1724,9 @@ spec:
- args:
- --port={{ metallb_port }}
- --log-level={{ metallb_log_level }}
{% if metallb_loadbalancer_class != "" %}
- --lb-class={{ metallb_loadbalancer_class }}
{% endif %}
env:
- name: METALLB_ML_SECRET_NAME
value: memberlist
@ -1814,6 +1817,9 @@ spec:
- args:
- --port={{ metallb_port }}
- --log-level={{ metallb_log_level }}
{% if metallb_loadbalancer_class != "" %}
- --lb-class={{ metallb_loadbalancer_class }}
{% endif %}
env:
- name: METALLB_NODE_NAME
valueFrom: