From fdcba89ad82c1245921cddc55c1b21cef9a657e5 Mon Sep 17 00:00:00 2001 From: Sharath MK Date: Tue, 19 Sep 2023 14:17:35 +0000 Subject: [PATCH] Enable Gateway leader election only if replicate gt 1 --- deployments/liqo/templates/liqo-gateway-deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployments/liqo/templates/liqo-gateway-deployment.yaml b/deployments/liqo/templates/liqo-gateway-deployment.yaml index 3833f0fd56..ed56061095 100644 --- a/deployments/liqo/templates/liqo-gateway-deployment.yaml +++ b/deployments/liqo/templates/liqo-gateway-deployment.yaml @@ -45,7 +45,9 @@ spec: command: ["/usr/bin/liqonet"] args: - --run-as=liqo-gateway + {{- if gt .Values.gateway.replicas 1.0 }} - --gateway.leader-elect=true + {{- end }} - --gateway.mtu={{ .Values.networking.mtu }} - --gateway.listening-port={{ .Values.gateway.config.listeningPort }} {{- if .Values.gateway.metrics.enabled }}