diff --git a/charts/pulsar/templates/broker-statefulset.yaml b/charts/pulsar/templates/broker-statefulset.yaml index 785fa726..534db046 100644 --- a/charts/pulsar/templates/broker-statefulset.yaml +++ b/charts/pulsar/templates/broker-statefulset.yaml @@ -38,8 +38,7 @@ spec: matchLabels: {{- include "pulsar.matchLabels" . | nindent 6 }} component: {{ .Values.broker.component }} - updateStrategy: - type: RollingUpdate + updateStrategy: {{ .Values.broker.updateStrategy | toYaml | nindent 4 }} {{- /* When functions are enabled, podManagementPolicy must be OrderedReady to ensure that other started brokers are available via DNS for the function worker to connect to. diff --git a/charts/pulsar/templates/proxy-statefulset.yaml b/charts/pulsar/templates/proxy-statefulset.yaml index a08af202..9c220e07 100644 --- a/charts/pulsar/templates/proxy-statefulset.yaml +++ b/charts/pulsar/templates/proxy-statefulset.yaml @@ -36,8 +36,7 @@ spec: matchLabels: {{- include "pulsar.matchLabels" . | nindent 6 }} component: {{ .Values.proxy.component }} - updateStrategy: - type: RollingUpdate + updateStrategy: {{ .Values.proxy.updateStrategy | toYaml | nindent 4 }} podManagementPolicy: Parallel template: metadata: diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml index 8a7e3dd9..ef04379e 100755 --- a/charts/pulsar/values.yaml +++ b/charts/pulsar/values.yaml @@ -1109,6 +1109,8 @@ broker: 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: + updateStrategy: + type: RollingUpdate initContainers: [] # This is how Victoria Metrics or Prometheus discovers this component podMonitor: @@ -1370,6 +1372,8 @@ proxy: maxReplicas: 3 metrics: ~ behavior: ~ + updateStrategy: + type: RollingUpdate initContainers: [] # This is how Victoria Metrics or Prometheus discovers this component podMonitor: