diff --git a/stable/redis/Chart.yaml b/stable/redis/Chart.yaml index 104e2d4123..5e87c3f295 100644 --- a/stable/redis/Chart.yaml +++ b/stable/redis/Chart.yaml @@ -1,5 +1,5 @@ name: redis -version: 5.1.6 +version: 5.2.0 appVersion: 4.0.12 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 9c365d4411..c02b46e473 100644 --- a/stable/redis/README.md +++ b/stable/redis/README.md @@ -124,6 +124,7 @@ The following table lists the configurable parameters of the Redis chart and the | `metrics.serviceMonitor.namespace` | Optional namespace which Prometheus is running in | `nil` | | `metrics.serviceMonitor.interval` | How frequently to scrape metrics (use by default, falling back to Prometheus' default) | `nil` | | `metrics.serviceMonitor.selector` | Default to kube-prometheus install (CoreOS recommended), but should be set according to Prometheus install | `{ prometheus: kube-prometheus }` | +| `metrics.priorityClassName` | Metrics exporter pod priorityClassName | {} | | `persistence.existingClaim` | Provide an existing PersistentVolumeClaim | `nil` | | `master.persistence.enabled` | Use a PVC to persist data (master node) | `true` | | `master.persistence.path` | Path to mount the volume at, to use other images | `/data` | @@ -164,6 +165,7 @@ The following table lists the configurable parameters of the Redis chart and the | `master.readinessProbe.timeoutSeconds` | When the probe times out (redis master pod) | `1` | | `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed (redis master pod) | `1` | | `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe to be considered failed after having succeeded. | `5` | +| `master.priorityClassName` | Redis Master pod priorityClassName | {} | | `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` | | `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/minideb` | | `volumePermissions.image.tag` | Init container volume-permissions image tag | `latest` | @@ -195,7 +197,8 @@ The following table lists the configurable parameters of the Redis chart and the | `slave.securityContext.fsGroup` | Group ID for the container (redis slave pod) | `master.securityContext.fsGroup` | | `slave.securityContext.runAsUser` | User ID for the container (redis slave pod) | `master.securityContext.runAsUser` | | `slave.resources` | Redis slave CPU/Memory resource requests/limits | `master.resources` | -| `slave.affinity` | Affinity settings for Redis slave pod assignment | {} | +| `slave.affinity` | Enable node/pod affinity for slaves | {} | +| `slave.priorityClassName` | Redis Slave pod priorityClassName | {} | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/redis/templates/metrics-deployment.yaml b/stable/redis/templates/metrics-deployment.yaml index f9d425168e..bfdc4d34db 100644 --- a/stable/redis/templates/metrics-deployment.yaml +++ b/stable/redis/templates/metrics-deployment.yaml @@ -41,6 +41,9 @@ spec: {{ toYaml .Values.metrics.nodeSelector | indent 8 }} {{- end }} serviceAccountName: "{{ template "redis.serviceAccountName" . }}" + {{- if .Values.metrics.priorityClassName }} + priorityClassName: "{{ .Values.metrics.priorityClassName }}" + {{- end }} {{- if .Values.metrics.tolerations }} tolerations: {{ toYaml .Values.metrics.tolerations | indent 8 }} diff --git a/stable/redis/templates/redis-master-statefulset.yaml b/stable/redis/templates/redis-master-statefulset.yaml index 767fb4764f..081ac0f933 100644 --- a/stable/redis/templates/redis-master-statefulset.yaml +++ b/stable/redis/templates/redis-master-statefulset.yaml @@ -44,6 +44,9 @@ spec: runAsUser: {{ .Values.master.securityContext.runAsUser }} {{- end }} serviceAccountName: "{{ template "redis.serviceAccountName" . }}" + {{- if .Values.master.priorityClassName }} + priorityClassName: "{{ .Values.master.priorityClassName }}" + {{- end }} {{- with .Values.master.affinity }} affinity: {{ tpl (toYaml .) $ | indent 8 }} diff --git a/stable/redis/templates/redis-slave-deployment.yaml b/stable/redis/templates/redis-slave-deployment.yaml index 690daf9cea..84e3bb105c 100644 --- a/stable/redis/templates/redis-slave-deployment.yaml +++ b/stable/redis/templates/redis-slave-deployment.yaml @@ -48,6 +48,9 @@ spec: {{- /* Include master securityContext if slave securityContext not defined */ -}} {{ include "redis.slave.securityContext" . | indent 6 }} serviceAccountName: "{{ template "redis.serviceAccountName" . }}" + {{- if .Values.slave.priorityClassName }} + priorityClassName: "{{ .Values.slave.priorityClassName }}" + {{- end }} {{- if (.Values.slave.nodeSelector | default .Values.master.nodeSelector) }} nodeSelector: {{ toYaml (.Values.slave.nodeSelector | default .Values.master.nodeSelector) | indent 8 }} diff --git a/stable/redis/values-production.yaml b/stable/redis/values-production.yaml index 02c3d31e0f..f1c17cacf6 100644 --- a/stable/redis/values-production.yaml +++ b/stable/redis/values-production.yaml @@ -216,6 +216,8 @@ master: ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions # rollingUpdatePartition: + ## Redis Master pod priorityClassName + # priorityClassName: {} ## ## Redis Slave properties @@ -293,6 +295,9 @@ slave: # fsGroup: 1001 # runAsUser: 1001 + ## Redis slave pod priorityClassName + # priorityClassName: {} + ## Prometheus Exporter / Metrics ## metrics: @@ -349,6 +354,9 @@ metrics: selector: prometheus: kube-prometheus + ## Metrics exporter pod priorityClassName + # priorityClassName: {} + ## ## Init containers parameters: ## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup diff --git a/stable/redis/values.yaml b/stable/redis/values.yaml index 899717988b..ef0c880350 100644 --- a/stable/redis/values.yaml +++ b/stable/redis/values.yaml @@ -215,6 +215,9 @@ master: ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions # rollingUpdatePartition: + ## Redis Master pod priorityClassName + # priorityClassName: {} + ## ## Redis Slave properties @@ -292,6 +295,9 @@ slave: # fsGroup: 1001 # runAsUser: 1001 + ## Redis slave pod priorityClassName + # priorityClassName: {} + ## Prometheus Exporter / Metrics ## metrics: @@ -349,6 +355,9 @@ metrics: selector: prometheus: kube-prometheus + ## Metrics exporter pod priorityClassName + # priorityClassName: {} + ## ## Init containers parameters: ## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup