diff --git a/templates/server-statefulset.yaml b/templates/server-statefulset.yaml index 0d8e604d0..722e1e22a 100644 --- a/templates/server-statefulset.yaml +++ b/templates/server-statefulset.yaml @@ -20,7 +20,7 @@ metadata: {{- template "vault.statefulSet.annotations" . }} spec: serviceName: {{ template "vault.fullname" . }}-internal - podManagementPolicy: Parallel + podManagementPolicy: {{ .Values.server.podManagementPolicy }} replicas: {{ template "vault.replicas" . }} updateStrategy: type: {{ .Values.server.updateStrategyType }} diff --git a/values.schema.json b/values.schema.json index 34d413179..d0fff02b3 100644 --- a/values.schema.json +++ b/values.schema.json @@ -962,6 +962,9 @@ } } }, + "podManagementPolicy": { + "type": "string" + }, "postStart": { "type": "array" }, diff --git a/values.yaml b/values.yaml index f46e5fdbd..af6cc50a0 100644 --- a/values.yaml +++ b/values.yaml @@ -381,6 +381,10 @@ server: # Overrides the default Image Pull Policy pullPolicy: IfNotPresent + # Configure the Pod Management Policy for the StatefulSet + # See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies + podManagementPolicy: "Parallel" + # Configure the Update Strategy Type for the StatefulSet # See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies updateStrategyType: "OnDelete"