Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / collection / charts / prometheus-node-exporter / templates / service.yaml
1 apiVersion: v1
2 kind: Service
3 metadata:
4   name: {{ template "prometheus-node-exporter.fullname" . }}
5 {{- if .Values.service.annotations }}
6   annotations:
7 {{ toYaml .Values.service.annotations | indent 4 }}
8 {{- end }}
9   labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
10 spec:
11   type: {{ .Values.service.type }}
12   ports:
13     - port: {{ .Values.service.port }}
14     {{- if ( and (eq .Values.service.type "NodePort" ) (not (empty .Values.service.nodePort)) ) }}
15       nodePort: {{ .Values.service.nodePort }}
16     {{- end }}
17       targetPort: {{ .Values.service.targetPort }}
18       protocol: TCP
19       name: metrics
20   selector:
21     app: {{ template "prometheus-node-exporter.name" . }}
22     release: {{ .Release.Name }}