1 {{- if .Values.prometheus.enabled }}
5 name: {{ template "prometheus-operator.fullname" . }}-prometheus
7 app: {{ template "prometheus-operator.name" . }}-prometheus
8 {{ include "prometheus-operator.labels" . | indent 4 }}
9 {{- if .Values.prometheus.service.annotations }}
11 {{ toYaml .Values.prometheus.service.annotations | indent 4 }}
14 {{- if .Values.prometheus.service.clusterIP }}
15 clusterIP: {{ .Values.prometheus.service.clusterIP }}
17 {{- if .Values.prometheus.service.externalIPs }}
19 {{ toYaml .Values.prometheus.service.externalIPs | indent 4 }}
21 {{- if .Values.prometheus.service.loadBalancerIP }}
22 loadBalancerIP: {{ .Values.prometheus.service.loadBalancerIP }}
24 {{- if .Values.prometheus.service.loadBalancerSourceRanges }}
25 loadBalancerSourceRanges:
26 {{- range $cidr := .Values.prometheus.service.loadBalancerSourceRanges }}
32 {{- if eq .Values.prometheus.service.type "NodePort" }}
33 nodePort: {{ .Values.prometheus.service.nodePort }}
36 {{- if eq .Values.prometheus.service.type "NodePort" }}
37 nodePort: {{ .Values.prometheus.service.nodePort }}
42 prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
43 type: "{{ .Values.prometheus.service.type }}"