diff --git a/postgresql/templates/statefulset.yaml b/postgresql/templates/statefulset.yaml index 3dfb8c85c..8962adc8e 100644 --- a/postgresql/templates/statefulset.yaml +++ b/postgresql/templates/statefulset.yaml @@ -107,6 +107,7 @@ metadata: spec: serviceName: {{ tuple "postgresql" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }} podManagementPolicy: "Parallel" +{{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_statefulset" | indent 2 }} replicas: {{ .Values.pod.replicas.server }} selector: matchLabels: diff --git a/postgresql/values.yaml b/postgresql/values.yaml index 8dfa0ec77..fff14d8d9 100644 --- a/postgresql/values.yaml +++ b/postgresql/values.yaml @@ -58,6 +58,9 @@ pod: prometheus_postgresql_exporter: 1 lifecycle: upgrades: + statefulsets: + pod_replacement_strategy: OnDelete + partition: 0 deployments: revision_history: 3 pod_replacement_strategy: RollingUpdate