Unverified Commit 715175a4 authored by Appr茅derisse Benjamin's avatar Appr茅derisse Benjamin Committed by GitHub

馃毀 [telegraf] Add affinity and tolerations (#143)

* 馃毀[telegraf] Add affinity and tolerations * 馃悰bump up chart version
parent bfa9f2ac
apiVersion: v1 apiVersion: v1
name: telegraf name: telegraf
version: 1.7.20 version: 1.7.21
appVersion: 1.14 appVersion: 1.14
deprecated: false deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
...@@ -88,6 +88,14 @@ spec: ...@@ -88,6 +88,14 @@ spec:
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
volumes: volumes:
- name: config - name: config
configMap: configMap:
......
...@@ -47,6 +47,20 @@ resources: {} ...@@ -47,6 +47,20 @@ resources: {}
## ref: https://kubernetes.io/docs/user-guide/node-selection/ ## ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {} 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)"
service: service:
enabled: true enabled: true
type: ClusterIP type: ClusterIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment