4 name: {{ template "prometheus.fullname" . }}-prometheus
6 app: {{ template "prometheus.name" . }}-prometheus
7 {{- if .Values.prometheus.service.annotations }}
9 {{ toYaml .Values.prometheus.service.annotations | indent 4 }}
12 {{- if .Values.prometheus.service.clusterIP }}
13 clusterIP: {{ .Values.prometheus.service.clusterIP }}
15 {{- if .Values.prometheus.service.externalIPs }}
17 {{ toYaml .Values.prometheus.service.externalIPs | indent 4 }}
19 {{- if .Values.prometheus.service.loadBalancerIP }}
20 loadBalancerIP: {{ .Values.prometheus.service.loadBalancerIP }}
22 {{- if .Values.prometheus.service.loadBalancerSourceRanges }}
23 loadBalancerSourceRanges:
24 {{- range $cidr := .Values.prometheus.service.loadBalancerSourceRanges }}
30 {{- if eq .Values.prometheus.service.type "NodePort" }}
31 nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.prometheus.service.nodePort }}
37 prometheus: {{ template "prometheus.fullname" . }}-prometheus
38 type: "{{ .Values.prometheus.service.type }}"