From f9cc0c395130f3417da603a9206e79b78bed6c93 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Thu, 3 Nov 2022 13:14:18 +0200 Subject: [PATCH] use recreate for postgres --- test/minio/1.7.0/templates/postgres-deployment.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/minio/1.7.0/templates/postgres-deployment.yaml b/test/minio/1.7.0/templates/postgres-deployment.yaml index b93425e997..521fd7b152 100644 --- a/test/minio/1.7.0/templates/postgres-deployment.yaml +++ b/test/minio/1.7.0/templates/postgres-deployment.yaml @@ -2,7 +2,14 @@ {{ $values := (. | mustDeepCopy) }} {{ $_ := set $values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }} {{ include "common.deployment.common_config" $values | nindent 0 }} -spec: {{ include "common.deployment.common_spec" $values | nindent 2 }} +spec: + replicas: {{ (default 1 .Values.replicas) }} + strategy: + type: Recreate + selector: + matchLabels: + app: {{ template "common.names.name" . }} + release: {{ .Release.Name }} template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} spec: containers: