summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorBruno Sakoto <bruno.sakoto@bell.ca>2022-03-31 08:51:59 -0400
committerFiachra Corcoran <fiachra.corcoran@est.tech>2022-05-04 14:02:14 +0000
commitb34f953d536bfd3fa8c1bc287ca79474b7fa9d37 (patch)
treeb9e0e65e5b97fb0b3518755abd0770d1b9b2beb5 /kubernetes
parent608deefdc3c3a7ed324bd3601fc418424fd1c645 (diff)
[CPS] Set postgres replica strategyistanbul
Strategy is set to Recreate instead of using default RollingUpdate Issue-ID: CPS-894 Change-Id: Ia5a5f54512baa6445a161c43075f0c29679691d0 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> (cherry picked from commit 6b41d876e5e0358542bd07b207973494b0f68b7f)
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/common/postgres/templates/_deployment.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/common/postgres/templates/_deployment.tpl b/kubernetes/common/postgres/templates/_deployment.tpl
index 341b4c86c7..1051aaff0b 100644
--- a/kubernetes/common/postgres/templates/_deployment.tpl
+++ b/kubernetes/common/postgres/templates/_deployment.tpl
@@ -33,6 +33,8 @@ metadata:
name: "{{ index $dot.Values "container" "name" $pgMode }}"
spec:
replicas: 1
+ strategy:
+ type: Recreate
selector:
matchLabels:
app: {{ include "common.name" $dot }}-{{ $pgMode }}