Skip to content

Commit

Permalink
Enable Gateway leader election only if replicate gt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharathmk99 committed Sep 19, 2023
1 parent f0449d6 commit a1c8527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deployments/liqo/templates/liqo-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ spec:
command: ["/usr/bin/liqonet"]
args:
- --run-as=liqo-gateway
- --gateway.leader-elect=true
{{- if gt .Values.gateway.replicas 1.0 }}
- --enable-leader-election=true
{{- end }}
- --gateway.mtu={{ .Values.networking.mtu }}
- --gateway.listening-port={{ .Values.gateway.config.listeningPort }}
{{- if .Values.gateway.metrics.enabled }}
Expand Down

0 comments on commit a1c8527

Please sign in to comment.