diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index c931623d5c..918c43e089 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 3.4.1 +version: 3.4.2 appVersion: 4.0.10 description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. keywords: diff --git a/stable/redis/README.md b/stable/redis/README.md index 6ec5ccfd1b..94a60f0333 100644 --- a/stable/redis/README.md +++ b/stable/redis/README.md @@ -86,6 +86,8 @@ The following table lists the configurable parameters of the Redis chart and the | `master.persistence.storageClass` | Storage class of backing PVC | `generic` | | `master.persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` | | `master.persistence.size` | Size of data volume | `8Gi` | +| `master.statefulset.updateStrategy` | Update strategy for StatefulSet | onDelete | +| `master.statefulset.rollingUpdatePartition`| Partition update strategy | `nil` | | `master.podLabels` | Additional labels for Redis master pod | {} | | `master.podAnnotations` | Additional annotations for Redis master pod | {} | | `master.port` | Redis master port | 6379 | diff --git a/stable/redis/templates/redis-master-statefulset.yaml b/stable/redis/templates/redis-master-statefulset.yaml index a24c399bea..ca7ecd458f 100644 --- a/stable/redis/templates/redis-master-statefulset.yaml +++ b/stable/redis/templates/redis-master-statefulset.yaml @@ -154,3 +154,9 @@ spec: {{- end }} {{- end }} {{- end }} + updateStrategy: + type: {{ .Values.master.statefulset.updateStrategy }} + {{- if .Values.master.statefulset.rollingUpdatePartition }} + rollingUpdate: + partition: {{ .Values.master.statefulset.rollingUpdatePartition }} + {{- end }} diff --git a/stable/redis/values-production.yaml b/stable/redis/values-production.yaml index 5125675a66..443224196d 100644 --- a/stable/redis/values-production.yaml +++ b/stable/redis/values-production.yaml @@ -175,6 +175,13 @@ master: - ReadWriteOnce size: 8Gi + ## Update strategy, can be set to RollingUpdate or onDelete by default. + ## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets + statefulset: + updateStrategy: OnDelete + ## Partition update strategy + ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions + # rollingUpdatePartition: ## ## Redis Slave properties diff --git a/stable/redis/values.yaml b/stable/redis/values.yaml index d237c02590..5f18b8fb60 100644 --- a/stable/redis/values.yaml +++ b/stable/redis/values.yaml @@ -217,6 +217,14 @@ master: - ReadWriteOnce size: 8Gi + ## Update strategy, can be set to RollingUpdate or onDelete by default. + ## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets + statefulset: + updateStrategy: OnDelete + ## Partition update strategy + ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions + # rollingUpdatePartition: + ## ## Redis Slave properties