Forráskód Böngészése

use recreate for postgres

Stavros kois 2 éve
szülő
commit
f9cc0c3951
1 módosított fájl, 8 hozzáadás és 1 törlés
  1. 8 1
      test/minio/1.7.0/templates/postgres-deployment.yaml

+ 8 - 1
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: