apiVersion: v1 kind: Service metadata: name: {{ .Chart.Name }} labels: app: {{ .Chart.Name }} annotations: prometheus.io/scrape: "true" prometheus.io/port: "8080" prometheus.io/path: "/metrics" spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: 8080 protocol: TCP name: metrics selector: app: {{ .Chart.Name }}