blob: ec34d5878f6d22969a94d60c6a0bb12adf8eb282 [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001{{- if .Values.prometheus.enabled }}
2apiVersion: v1
3kind: Service
4metadata:
5 name: {{ template "cert-manager.fullname" . }}
6 namespace: {{ include "cert-manager.namespace" . }}
7{{- with .Values.serviceAnnotations }}
8 annotations:
9{{ toYaml . | indent 4 }}
10{{- end }}
11 labels:
12 app: {{ include "cert-manager.name" . }}
13 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
14 app.kubernetes.io/instance: {{ .Release.Name }}
15 app.kubernetes.io/component: "controller"
16 {{- include "labels" . | nindent 4 }}
17 {{- with .Values.serviceLabels }}
18 {{- toYaml . | nindent 4 }}
19 {{- end }}
20spec:
21 type: ClusterIP
22 ports:
23 - protocol: TCP
24 port: 9402
25 name: tcp-prometheus-servicemonitor
26 targetPort: {{ .Values.prometheus.servicemonitor.targetPort }}
27 selector:
28 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
29 app.kubernetes.io/instance: {{ .Release.Name }}
30 app.kubernetes.io/component: "controller"
31{{- end }}