From 688cce800de8bd727fef50278fd9f696d42b3440 Mon Sep 17 00:00:00 2001 From: Daniel Nikolaidis Date: Fri, 20 Oct 2023 18:51:32 +0300 Subject: [PATCH] metallb --lb-class cmd arg to support multiple load balancer implementations --- roles/kubernetes-apps/metallb/templates/metallb.yaml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/kubernetes-apps/metallb/templates/metallb.yaml.j2 b/roles/kubernetes-apps/metallb/templates/metallb.yaml.j2 index eab386ff8f8..f3477ae1a21 100644 --- a/roles/kubernetes-apps/metallb/templates/metallb.yaml.j2 +++ b/roles/kubernetes-apps/metallb/templates/metallb.yaml.j2 @@ -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 @@ -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: