add tolerations, affinity and nodeSelector to stackdriver-exporter (#11854)

* add tolerations, affinity and nodeSelector to stackdriver-exporter
fix pb w too many blank lines

Signed-off-by: baboune <nicolas.seyvet@sandvik.com>

* Update stable/stackdriver-exporter/Chart.yaml

Co-Authored-By: baboune <seyvet@yahoo.com>
Signed-off-by: baboune <nicolas.seyvet@sandvik.com>
This commit is contained in:
baboune
2019-03-05 01:52:00 -08:00
committed by Kubernetes Prow Robot
parent 19a77c3346
commit 7e9730490a
4 changed files with 37 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Stackdriver exporter for Prometheus
name: stackdriver-exporter
version: 0.0.6
version: 1.0.0
appVersion: 0.6.0
home: https://www.stackdriver.com/
sources:
+5
View File
@@ -78,6 +78,11 @@ Parameter | Description
`web.listenAddress` | Port to listen on | `9255`
`web.path` | Path under which to expose metrics | `/metrics`
`annotations` | Deployment annotations | `{}`
`affinity` | Pod affinity | `{}`
`nodeSelector` | Node labels for pod assignment | `{}`
`tolerations` | Node taints to tolerate (requires Kubernetes >=1.6) | `[]`
Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`. For example,
@@ -28,6 +28,10 @@ spec:
{{ toYaml .Values.annotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
restartPolicy: {{ .Values.restartPolicy }}
containers:
- name: {{ .Chart.Name }}
@@ -74,3 +78,12 @@ spec:
port: http
initialDelaySeconds: 10
timeoutSeconds: 10
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
+18
View File
@@ -49,4 +49,22 @@ web:
# Path under which to expose metrics.
path: /metrics
## Pod affinity
##
affinity: {}
annotations: {}
## Node labels for stackdriver-exporter pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
## Node tolerations for stackdriver-exporter scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
# - key: "key"
# operator: "Equal|Exists"
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"