4 name: {{ template "kube-state-metrics.fullname" . }}
5 namespace: {{ template "kube-state-metrics.namespace" . }}
7 app.kubernetes.io/name: {{ template "kube-state-metrics.name" . }}
8 helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
9 app.kubernetes.io/instance: "{{ .Release.Name }}"
10 app.kubernetes.io/managed-by: "{{ .Release.Service }}"
11 {{- if .Values.customLabels }}
12 {{ toYaml .Values.customLabels | indent 4 }}
15 {{- if .Values.prometheusScrape }}
16 prometheus.io/scrape: '{{ .Values.prometheusScrape }}'
18 {{- if .Values.service.annotations }}
19 {{- toYaml .Values.service.annotations | nindent 4 }}
22 type: "{{ .Values.service.type }}"
26 port: {{ .Values.service.port }}
27 {{- if .Values.service.nodePort }}
28 nodePort: {{ .Values.service.nodePort }}
31 {{- if .Values.service.loadBalancerIP }}
32 loadBalancerIP: "{{ .Values.service.loadBalancerIP }}"
35 app.kubernetes.io/name: {{ template "kube-state-metrics.name" . }}
36 app.kubernetes.io/instance: {{ .Release.Name }}