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 authored and adamjensenbot committed Sep 19, 2023
1 parent f0449d6 commit fdcba89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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
{{- 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 }}
Expand Down

0 comments on commit fdcba89

Please sign in to comment.