Skip to content

Commit

Permalink
metallb --lb-class cmd arg to support multiple load balancer implemen…
Browse files Browse the repository at this point in the history
…tations
  • Loading branch information
Seal1998 committed Oct 20, 2023
1 parent 1f47d5b commit 688cce8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/kubernetes-apps/metallb/templates/metallb.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,9 @@ spec:
- args:
- --port={{ metallb_port }}
- --log-level={{ metallb_log_level }}
{% if 'loadbalancer_class' in metallb_config.keys() and metallb_config.loadbalancer_class != "" %}
- --lb-class={{ metallb_config.loadbalancer_class }}
{% endif %}
env:
- name: METALLB_ML_SECRET_NAME
value: memberlist
Expand Down Expand Up @@ -1814,6 +1817,9 @@ spec:
- args:
- --port={{ metallb_port }}
- --log-level={{ metallb_log_level }}
{% if 'loadbalancer_class' in metallb_config.keys() and metallb_config.loadbalancer_class != "" %}
- --lb-class={{ metallb_config.loadbalancer_class }}
{% endif %}
env:
- name: METALLB_NODE_NAME
valueFrom:
Expand Down

0 comments on commit 688cce8

Please sign in to comment.