diff --git a/charts/redis-operator/README.md b/charts/redis-operator/README.md index 41e6dc493..59a107688 100644 --- a/charts/redis-operator/README.md +++ b/charts/redis-operator/README.md @@ -124,6 +124,7 @@ kubectl create secret tls --key tls.key --cert tls.crt -n | redisOperator.pprof.bindAddress | string | `":6060"` | | | redisOperator.pprof.enabled | bool | `false` | | | redisOperator.serviceDNSDomain | string | `"cluster.local"` | The DNS domain suffix used for Kubernetes service discovery. Default is "cluster.local". Change this if your cluster uses a custom DNS domain. | +| redisOperator.strategy | object | `{}` | | | redisOperator.watchNamespace | string | `""` | | | redisOperator.webhook | bool | `false` | | | replicas | int | `1` | | diff --git a/charts/redis-operator/templates/operator-deployment.yaml b/charts/redis-operator/templates/operator-deployment.yaml index 89102c85a..e71172326 100644 --- a/charts/redis-operator/templates/operator-deployment.yaml +++ b/charts/redis-operator/templates/operator-deployment.yaml @@ -6,6 +6,8 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "redisOperator.labels" . | nindent 4 }} spec: + strategy: + {{- toYaml .Values.redisOperator.strategy | nindent 4 }} replicas: {{ .Values.replicas }} selector: matchLabels: {{- include "redisOperator.selectorLabels" . | nindent 6 }} diff --git a/charts/redis-operator/values.yaml b/charts/redis-operator/values.yaml index 4912fdf15..3b9d237ad 100644 --- a/charts/redis-operator/values.yaml +++ b/charts/redis-operator/values.yaml @@ -11,6 +11,14 @@ redisOperator: imagePullPolicy: Always imagePullSecrets: [] + # Update strategy + # strategy: + # type: RollingUpdate + # rollingUpdate: + # maxSurge: 25% + # maxUnavailable: 25% + strategy: {} + # Additional pod annotations podAnnotations: {} # Additional Pod labels (e.g. for filtering Pod by custom labels)