apiVersion: v1 kind: Service metadata: name: {{ include "my-prometheus.fullname" . }} spec: type: {{ .Values.service.type }} selector: app: {{ include "my-prometheus.name" . }} ports: - port: {{ .Values.service.port }} targetPort: 9090