2021-05-17 22:30:18 +00:00
|
|
|
--- charts-original/templates/daemonset.yaml
|
|
|
|
+++ charts/templates/daemonset.yaml
|
2021-06-08 05:58:39 +00:00
|
|
|
@@ -29,9 +29,13 @@
|
|
|
|
{{- if .Values.priorityClassName }}
|
|
|
|
priorityClassName: {{ .Values.priorityClassName }}
|
2021-05-17 22:30:18 +00:00
|
|
|
{{- end }}
|
2021-06-08 05:58:39 +00:00
|
|
|
+ {{- if .Values.extraInitContainers }}
|
|
|
|
+ initContainers:
|
|
|
|
+ {{ toYaml .Values.extraInitContainers | nindent 6 }}
|
|
|
|
+ {{- end }}
|
2021-05-17 22:30:18 +00:00
|
|
|
containers:
|
|
|
|
- name: node-exporter
|
|
|
|
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
args:
|
|
|
|
- --path.procfs=/host/proc
|
2021-06-08 05:58:39 +00:00
|
|
|
@@ -129,18 +133,18 @@
|
2021-05-17 22:30:18 +00:00
|
|
|
affinity:
|
|
|
|
{{ toYaml .Values.affinity | indent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
|
|
|
|
{{- with .Values.dnsConfig }}
|
|
|
|
dnsConfig:
|
|
|
|
{{ toYaml . | indent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.nodeSelector }}
|
|
|
|
- nodeSelector:
|
|
|
|
-{{ toYaml .Values.nodeSelector | indent 8 }}
|
|
|
|
+{{- toYaml .Values.Selector | nindent 8 }}
|
|
|
|
+{{- end }}
|
|
|
|
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
|
|
|
|
+{{- if .Values.tolerations }}
|
|
|
|
+{{- toYaml .Values.tolerations | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
- {{- with .Values.tolerations }}
|
|
|
|
- tolerations:
|
|
|
|
-{{ toYaml . | indent 8 }}
|
|
|
|
- {{- end }}
|
|
|
|
volumes:
|
|
|
|
- name: proc
|
|
|
|
hostPath:
|