Merge "Running agents on all nodes."

This commit is contained in:
Zuul 2019-01-11 04:15:27 +00:00 committed by Gerrit Code Review
commit ded5de14fa
2 changed files with 12 additions and 0 deletions

View File

@ -52,8 +52,12 @@ spec:
{{ tuple $envAll "process_exporter" "metrics" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
{{ if .Values.pod.tolerations.process_exporter.enabled }}
{{ tuple $envAll "process_exporter" | include "helm-toolkit.snippets.kubernetes_tolerations" | indent 6 }}
{{ else }}
nodeSelector:
{{ .Values.labels.process_exporter.node_selector_key }}: {{ .Values.labels.process_exporter.node_selector_value }}
{{ end }}
hostNetwork: true
hostPID: true
initContainers:

View File

@ -79,6 +79,14 @@ pod:
limits:
memory: "1024Mi"
cpu: "2000m"
tolerations:
process_exporter:
enabled: false
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
- key: node-role.kubernetes.io/node
operator: Exists
dependencies:
dynamic: