[stable/redis] added PV selectors (#20652)

Signed-off-by: Ivan Kurnosov <zerkms@zerkms.com>
This commit is contained in:
Ivan Kurnosov
2020-02-12 02:08:52 -08:00
committed by GitHub
parent 621872ad5e
commit 49eaa74bfe
7 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: redis
version: 10.4.4
version: 10.5.0
appVersion: 5.0.7
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:
+4
View File
@@ -118,6 +118,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.persistence.matchLabels` | matchLabels persistent volume selector | `{}` |
| `master.persistence.matchExpressions` | matchExpressions persistent volume selector | `{}` |
| `master.statefulset.updateStrategy` | Update strategy for StatefulSet | onDelete |
| `master.statefulset.rollingUpdatePartition` | Partition update strategy | `nil` |
| `master.podLabels` | Additional labels for Redis master pod | {} |
@@ -187,6 +189,8 @@ The following table lists the configurable parameters of the Redis chart and the
| `slave.persistence.storageClass` | Storage class of backing PVC | `generic` |
| `slave.persistence.accessModes` | Persistent Volume Access Modes | `[ReadWriteOnce]` |
| `slave.persistence.size` | Size of data volume | `8Gi` |
| `slave.persistence.matchLabels` | matchLabels persistent volume selector | `{}` |
| `slave.persistence.matchExpressions` | matchExpressions persistent volume selector | `{}` |
| `slave.statefulset.updateStrategy` | Update strategy for StatefulSet | onDelete |
| `slave.statefulset.rollingUpdatePartition` | Partition update strategy | `nil` |
| `slave.podLabels` | Additional labels for Redis slave pod | `master.podLabels` |
+9
View File
@@ -397,6 +397,15 @@ spec:
requests:
storage: {{ .Values.master.persistence.size | quote }}
{{ include "redis.master.storageClass" . }}
selector:
{{- if .Values.master.persistence.matchLabels }}
matchLabels:
{{ toYaml .Values.master.persistence.matchLabels | indent 12 }}
{{- end -}}
{{- if .Values.master.persistence.matchExpressions }}
matchExpressions:
{{ toYaml .Values.master.persistence.matchExpressions | indent 12 }}
{{- end -}}
{{- end }}
updateStrategy:
type: {{ .Values.master.statefulset.updateStrategy }}
+9
View File
@@ -414,6 +414,15 @@ spec:
requests:
storage: {{ .Values.slave.persistence.size | quote }}
{{ include "redis.slave.storageClass" . }}
selector:
{{- if .Values.slave.persistence.matchLabels }}
matchLabels:
{{ toYaml .Values.slave.persistence.matchLabels | indent 12 }}
{{- end -}}
{{- if .Values.slave.persistence.matchExpressions }}
matchExpressions:
{{ toYaml .Values.slave.persistence.matchExpressions | indent 12 }}
{{- end -}}
{{- end }}
updateStrategy:
type: {{ .Values.slave.statefulset.updateStrategy }}
+8
View File
@@ -335,6 +335,10 @@ master:
accessModes:
- ReadWriteOnce
size: 8Gi
## Persistent Volume selectors
## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
matchLabels: {}
matchExpressions: {}
## Update strategy, can be set to RollingUpdate or onDelete by default.
## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
@@ -455,6 +459,10 @@ slave:
accessModes:
- ReadWriteOnce
size: 8Gi
## Persistent Volume selectors
## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
matchLabels: {}
matchExpressions: {}
## Update strategy, can be set to RollingUpdate or onDelete by default.
## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
+16
View File
@@ -67,6 +67,14 @@
"condition": false,
"value": "master.persistence.enabled"
}
},
"matchLabels": {
"type": "object",
"title": "Persistent Match Labels Selector"
},
"matchExpressions": {
"type": "object",
"title": "Persistent Match Expressions Selector"
}
}
}
@@ -104,6 +112,14 @@
"condition": false,
"value": "slave.persistence.enabled"
}
},
"matchLabels": {
"type": "object",
"title": "Persistent Match Labels Selector"
},
"matchExpressions": {
"type": "object",
"title": "Persistent Match Expressions Selector"
}
}
}
+8
View File
@@ -335,6 +335,10 @@ master:
accessModes:
- ReadWriteOnce
size: 8Gi
## Persistent Volume selectors
## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
matchLabels: {}
matchExpressions: {}
## Update strategy, can be set to RollingUpdate or onDelete by default.
## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets
@@ -455,6 +459,10 @@ slave:
accessModes:
- ReadWriteOnce
size: 8Gi
## Persistent Volume selectors
## https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
matchLabels: {}
matchExpressions: {}
## Update strategy, can be set to RollingUpdate or onDelete by default.
## https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#updating-statefulsets