diff --git a/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml b/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml index eb5192c5a..7f909cc79 100644 --- a/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml +++ b/deploy/charts/emqx-enterprise/templates/StatefulSet.yaml @@ -32,6 +32,9 @@ spec: {{- end }} updateStrategy: type: RollingUpdate + {{- if .Values.minReadySeconds }} + minReadySeconds: {{ .Values.minReadySeconds }} + {{- end }} replicas: {{ .Values.replicaCount }} selector: matchLabels: diff --git a/deploy/charts/emqx-enterprise/values.yaml b/deploy/charts/emqx-enterprise/values.yaml index d527bf057..37fa56348 100644 --- a/deploy/charts/emqx-enterprise/values.yaml +++ b/deploy/charts/emqx-enterprise/values.yaml @@ -35,6 +35,9 @@ serviceAccount: ## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change. recreatePods: false +## Sets the minReadySeconds parameter on the stateful set. This can be used to add delay between restart / updates between the single pods. +minReadySeconds: + clusterDomain: cluster.local podAnnotations: {} diff --git a/deploy/charts/emqx/templates/StatefulSet.yaml b/deploy/charts/emqx/templates/StatefulSet.yaml index 9f8e64f9c..430260585 100644 --- a/deploy/charts/emqx/templates/StatefulSet.yaml +++ b/deploy/charts/emqx/templates/StatefulSet.yaml @@ -32,6 +32,9 @@ spec: {{- end }} updateStrategy: type: RollingUpdate + {{- if .Values.minReadySeconds }} + minReadySeconds: {{ .Values.minReadySeconds }} + {{- end }} replicas: {{ .Values.replicaCount }} selector: matchLabels: diff --git a/deploy/charts/emqx/values.yaml b/deploy/charts/emqx/values.yaml index ff28d71cd..791db5812 100644 --- a/deploy/charts/emqx/values.yaml +++ b/deploy/charts/emqx/values.yaml @@ -35,6 +35,9 @@ serviceAccount: ## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change. recreatePods: false +## Sets the minReadySeconds parameter on the stateful set. This can be used to add delay between restart / updates between the single pods. +minReadySeconds: + clusterDomain: cluster.local podAnnotations: {}