From 1175cd38ed621f11d73eb7d5a99bac869eb7f6ad Mon Sep 17 00:00:00 2001 From: Conor Brady Date: Mon, 29 Jan 2024 14:57:47 -0800 Subject: [PATCH 1/4] Scale down patroni to single replica --- openshift/templates/patroni_prerequisite.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/templates/patroni_prerequisite.yaml b/openshift/templates/patroni_prerequisite.yaml index e576a5a40..2d2083f06 100644 --- a/openshift/templates/patroni_prerequisite.yaml +++ b/openshift/templates/patroni_prerequisite.yaml @@ -147,7 +147,7 @@ parameters: description: | The number of StatefulSet replicas to use. displayName: REPLICAS - value: "3" + value: "1" - name: CPU_REQUEST description: | Starting amount of CPU the container can use. From 1c7157ed05eb37fdeea33cb5b9b5952c014020a5 Mon Sep 17 00:00:00 2001 From: Conor Brady Date: Mon, 29 Jan 2024 15:18:23 -0800 Subject: [PATCH 2/4] Missed reference --- openshift/templates/patroni.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/templates/patroni.yaml b/openshift/templates/patroni.yaml index 53166ae15..d76ad6d13 100644 --- a/openshift/templates/patroni.yaml +++ b/openshift/templates/patroni.yaml @@ -255,7 +255,7 @@ parameters: description: | The number of StatefulSet replicas to use. displayName: REPLICAS - value: "3" + value: "1" - name: CPU_REQUEST description: | Starting amount of CPU the container can use. From e9351e3d3ba55718083200f1c5a85312bcf50c3c Mon Sep 17 00:00:00 2001 From: Conor Brady Date: Mon, 29 Jan 2024 15:37:19 -0800 Subject: [PATCH 3/4] Fix sub syntax --- openshift/templates/patroni.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/templates/patroni.yaml b/openshift/templates/patroni.yaml index d76ad6d13..f8c844ef6 100644 --- a/openshift/templates/patroni.yaml +++ b/openshift/templates/patroni.yaml @@ -90,7 +90,7 @@ objects: template.alpha.openshift.io/wait-for-ready: "true" spec: podManagementPolicy: Parallel - replicas: ${{REPLICAS}} + replicas: ${REPLICAS} revisionHistoryLimit: 10 selector: matchLabels: From 45997cae478ba41313868b3553881e7e673fb579 Mon Sep 17 00:00:00 2001 From: Conor Brady Date: Mon, 29 Jan 2024 15:43:10 -0800 Subject: [PATCH 4/4] Undo --- openshift/templates/patroni.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/templates/patroni.yaml b/openshift/templates/patroni.yaml index f8c844ef6..d76ad6d13 100644 --- a/openshift/templates/patroni.yaml +++ b/openshift/templates/patroni.yaml @@ -90,7 +90,7 @@ objects: template.alpha.openshift.io/wait-for-ready: "true" spec: podManagementPolicy: Parallel - replicas: ${REPLICAS} + replicas: ${{REPLICAS}} revisionHistoryLimit: 10 selector: matchLabels: