From 055c877afd395054bfce08087c0ae99bfb0d746b Mon Sep 17 00:00:00 2001 From: satchpx <42478164+satchpx@users.noreply.github.com> Date: Fri, 31 May 2019 18:32:19 -0700 Subject: [PATCH] updates to support alternate k8s scheduler (#14367) Signed-off-by: Sathya Balakrishnan --- stable/redis-ha/Chart.yaml | 2 +- stable/redis-ha/README.md | 1 + stable/redis-ha/templates/redis-ha-statefulset.yaml | 5 ++++- stable/redis-ha/values.yaml | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/stable/redis-ha/Chart.yaml b/stable/redis-ha/Chart.yaml index 53c3c16b0d..a9a32ec0cf 100644 --- a/stable/redis-ha/Chart.yaml +++ b/stable/redis-ha/Chart.yaml @@ -6,7 +6,7 @@ keywords: - redis - keyvalue - database -version: 3.4.2 +version: 3.5.0 appVersion: 5.0.3 description: Highly available Kubernetes implementation of Redis icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png diff --git a/stable/redis-ha/README.md b/stable/redis-ha/README.md index 57e9994a01..1f17a28645 100644 --- a/stable/redis-ha/README.md +++ b/stable/redis-ha/README.md @@ -92,6 +92,7 @@ The following table lists the configurable parameters of the Redis chart and the | `sysctlImage.tag` | sysctlImage Init container tag | `latest` | | `sysctlImage.pullPolicy` | sysctlImage Init container pull policy | `Always` | | `sysctlImage.mountHostSys` | Mount the host `/sys` folder to `/host-sys` | `false` | +| `schedulerName` | Alternate scheduler name | `nil` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/redis-ha/templates/redis-ha-statefulset.yaml b/stable/redis-ha/templates/redis-ha-statefulset.yaml index 9ef4f85e7e..dd87b0501f 100644 --- a/stable/redis-ha/templates/redis-ha-statefulset.yaml +++ b/stable/redis-ha/templates/redis-ha-statefulset.yaml @@ -34,6 +34,9 @@ spec: {{ $key }}: {{ $value }} {{- end }} spec: + {{- if .Values.schedulerName }} + schedulerName: "{{ .Values.schedulerName }}" + {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} @@ -236,7 +239,7 @@ spec: - name: host-sys hostPath: path: /sys - {{- end }} + {{- end }} {{- if .Values.persistentVolume.enabled }} volumeClaimTemplates: - metadata: diff --git a/stable/redis-ha/values.yaml b/stable/redis-ha/values.yaml index 9bdb2c5d9d..4dfbc403ec 100644 --- a/stable/redis-ha/values.yaml +++ b/stable/redis-ha/values.yaml @@ -37,6 +37,10 @@ sysctlImage: pullPolicy: Always mountHostSys: false +## Use an alternate scheduler, e.g. "stork". +## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ +## +# schedulerName: ## Redis specific configuration options redis: