1 apiVersion: extensions/v1beta1
4 name: {{ template "prometheus-node-exporter.fullname" . }}
5 labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
9 app: {{ template "prometheus-node-exporter.name" . }}
10 release: {{ .Release.Name }}
17 labels: {{ include "prometheus-node-exporter.labels" . | indent 8 }}
19 {{- if and .Values.rbac.create .Values.serviceAccount.create }}
20 serviceAccountName: {{ template "prometheus-node-exporter.serviceAccountName" . }}
22 {{- if .Values.securityContext }}
24 {{ toYaml .Values.securityContext | indent 8 }}
26 {{- if .Values.priorityClassName }}
27 priorityClassName: {{ .Values.priorityClassName }}
31 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
32 imagePullPolicy: {{ .Values.image.pullPolicy }}
34 - --path.procfs=/host/proc
35 - --path.sysfs=/host/sys
36 - --web.listen-address=0.0.0.0:{{ .Values.service.port }}
37 {{- if .Values.extraArgs }}
38 {{ toYaml .Values.extraArgs | indent 12 }}
42 containerPort: {{ .Values.service.targetPort }}
47 port: {{ .Values.service.port }}
51 port: {{ .Values.service.port }}
53 {{ toYaml .Values.resources | indent 12 }}
61 {{- if .Values.extraHostVolumeMounts }}
62 {{- range $_, $mount := .Values.extraHostVolumeMounts }}
63 - name: {{ $mount.name }}
64 mountPath: {{ $mount.mountPath }}
65 readOnly: {{ $mount.readOnly }}
66 {{- if $mount.mountPropagation }}
67 mountPropagation: {{ $mount.mountPropagation }}
73 {{- if .Values.affinity }}
75 {{ toYaml .Values.affinity | indent 8 }}
77 {{- if .Values.nodeSelector }}
79 {{ toYaml .Values.nodeSelector | indent 8 }}
81 {{- with .Values.tolerations }}
83 {{ toYaml . | indent 8 }}
92 {{- if .Values.extraHostVolumeMounts }}
93 {{- range $_, $mount := .Values.extraHostVolumeMounts }}
94 - name: {{ $mount.name }}
96 path: {{ $mount.hostPath }}