Add updateStrategy parameter for redis StatefulSet. (#6121)

* Add updateStrategy parameter for redis StatefulSet.

* Add partition update strategy parameter for redis StatefulSet.

* Bugfix.

* Bugfix.
This commit is contained in:
Anatoli Iariomenco
2018-06-18 07:54:30 -07:00
committed by k8s-ci-robot
parent dabdba3b28
commit 4ce2986e39
5 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -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:
+2
View File
@@ -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 |
@@ -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 }}
+7
View File
@@ -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
+8
View File
@@ -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