From 59feb36e3dddcb822a557cad87b9b7f4ebfc7695 Mon Sep 17 00:00:00 2001 From: Arnob Kumar Saha Date: Mon, 25 Nov 2024 20:07:38 +0600 Subject: [PATCH] Remove pg leader election (#669) Signed-off-by: Arnob kumar saha --- .../kubedbcom-postgres-editor-options/templates/db.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/charts/kubedbcom-postgres-editor-options/templates/db.yaml b/charts/kubedbcom-postgres-editor-options/templates/db.yaml index 6aaf89be5e..1b3439c9dc 100644 --- a/charts/kubedbcom-postgres-editor-options/templates/db.yaml +++ b/charts/kubedbcom-postgres-editor-options/templates/db.yaml @@ -72,13 +72,7 @@ spec: name: {{ .Values.spec.authSecret.name }} {{- end }} {{- if eq .Values.spec.mode "Replicaset" }} - replicas: 3 - standbyMode: Hot - leaderElection: - electionTick: 10 - heartbeatTick: 1 - maximumLagBeforeFailover: 33554432 - period: 100ms + replicas: {{ .Values.spec.replicas }} {{- else }} replicas: 1 {{- end }}