[stable/influxdb] Add support for pod affinities and tolerations (#9457)

Signed-off-by: Atanas Zhelev <azhelev+github@mailbox.org>
This commit is contained in:
azhelev
2019-01-02 11:33:45 -08:00
committed by Kubernetes Prow Robot
parent abcae04627
commit c5c84335d7
3 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: influxdb
version: 1.0.0
version: 1.1.0
appVersion: 1.7
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
@@ -88,3 +88,11 @@ spec:
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end -}}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
+14
View File
@@ -105,6 +105,20 @@ ingress:
##
nodeSelector: {}
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
## Tolerations for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
## The InfluxDB image uses several environment variables to automatically
## configure certain parts of the server.
## Ref: https://hub.docker.com/_/influxdb/