Add nodeSelector to stable/redis (#1290)

This commit adds support for `nodeSelector` and `tolerations` to the
`stable/redis` chart.
This commit is contained in:
Corey Burmeister
2017-07-01 13:50:13 +02:00
committed by Reinhard Nägele
parent 30a51e1513
commit 012665bd14
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redis
version: 0.7.1
version: 0.8.0
appVersion: 3.2.9
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
@@ -60,6 +60,8 @@ The following tables lists the configurable parameters of the Redis chart and th
| `metrics.imageTag` | Exporter image | `v0.11` |
| `metrics.imagePullPolicy` | Exporter image pull policy | `IfNotPresent` |
| `metrics.resources` | Exporter resource requests/limit | Memory: `256Mi`, CPU: `100m` |
| `nodeSelector` | Node labels for pod assignment | {} |
| `tolerations` | Toleration labels for pod assignment | [] |
The above parameters map to the env variables defined in [bitnami/redis](http://github.com/bitnami/bitnami-docker-redis). For more information please refer to the [bitnami/redis](http://github.com/bitnami/bitnami-docker-redis) image documentation.
+8
View File
@@ -13,6 +13,14 @@ spec:
labels:
app: {{ template "fullname" . }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
containers:
- name: {{ template "fullname" . }}
image: "{{ .Values.image }}"
+6
View File
@@ -52,3 +52,9 @@ resources:
requests:
memory: 256Mi
cpu: 100m
## Node labels and tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
nodeSelector: {}
tolerations: []