diff --git a/charts/pulsar/templates/broker-statefulset.yaml b/charts/pulsar/templates/broker-statefulset.yaml index b5e4a63..dc4157a 100644 --- a/charts/pulsar/templates/broker-statefulset.yaml +++ b/charts/pulsar/templates/broker-statefulset.yaml @@ -48,7 +48,9 @@ spec: {{- if $stsObj }} podManagementPolicy: {{ $stsObj.spec.podManagementPolicy }} {{- else }} - {{- if not .Values.components.functions }} + {{- if .Values.broker.podManagementPolicy }} + podManagementPolicy: {{ .Values.broker.podManagementPolicy }} + {{- else if not .Values.components.functions }} podManagementPolicy: Parallel {{- else }} podManagementPolicy: OrderedReady diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml index ec9bdbc..8fdb758 100755 --- a/charts/pulsar/values.yaml +++ b/charts/pulsar/values.yaml @@ -806,6 +806,8 @@ broker: maxReplicas: 3 metrics: ~ behavior: ~ + # The podManagementPolicy cannot be modified for an existing deployment. If you need to change this value, you will need to manually delete the existing broker StatefulSet and then redeploy the chart. + podManagementPolicy: initContainers: [] # This is how prometheus discovers this component podMonitor: