4 name: {{ template "prometheus-node-exporter.fullname" . }}
5 {{- if .Values.service.annotations }}
7 {{ toYaml .Values.service.annotations | indent 4 }}
9 labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
11 type: {{ .Values.service.type }}
13 - port: {{ .Values.service.port }}
14 {{- if ( and (eq .Values.service.type "NodePort" ) (not (empty .Values.service.nodePort)) ) }}
15 nodePort: {{ .Values.service.nodePort }}
17 targetPort: {{ .Values.service.targetPort }}
21 app: {{ template "prometheus-node-exporter.name" . }}
22 release: {{ .Release.Name }}