commit | 6b41d876e5e0358542bd07b207973494b0f68b7f | [log] [tgz] |
---|---|---|
author | Bruno Sakoto <bruno.sakoto@bell.ca> | Thu Mar 31 08:51:59 2022 -0400 |
committer | Bruno Sakoto <bruno.sakoto@bell.ca> | Thu Mar 31 11:29:48 2022 -0400 |
tree | 3a40b709f6e356de20b561462c361f41896223d1 | |
parent | f509a5f5f1a2fdf75c18f73beca71405be818b57 [diff] |
[CPS] Set postgres replica strategy 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>
diff --git a/kubernetes/common/postgres/templates/_deployment.tpl b/kubernetes/common/postgres/templates/_deployment.tpl index 341b4c8..1051aaf 100644 --- a/kubernetes/common/postgres/templates/_deployment.tpl +++ b/kubernetes/common/postgres/templates/_deployment.tpl
@@ -33,6 +33,8 @@ name: "{{ index $dot.Values "container" "name" $pgMode }}" spec: replicas: 1 + strategy: + type: Recreate selector: matchLabels: app: {{ include "common.name" $dot }}-{{ $pgMode }}