Running agents on all nodes.
Using a node selector can not run the prometheus-process-exporter on the master node. So, This PS changes the scheduling to use either taint/toleration or the node selector. Change-Id: Ie84b2d2e0354fa927c1010c18392667dad171483
This commit is contained in:
parent
730e7811c2
commit
b9e864a456
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user