blob: 3dedc68abdf90b476d96cafe9a4255e52dd30f45 [file] [log] [blame]
gio33d62932026-07-23 16:39:35 +04001{{- if and .Values.prometheus.enabled (not .Values.prometheus.podmonitor.enabled) }}
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04002apiVersion: 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
gio33d62932026-07-23 16:39:35 +040022 {{- if .Values.serviceIPFamilyPolicy }}
23 ipFamilyPolicy: {{ .Values.serviceIPFamilyPolicy }}
24 {{- end }}
25 {{- if .Values.serviceIPFamilies }}
26 ipFamilies: {{ .Values.serviceIPFamilies | toYaml | nindent 2 }}
27 {{- end }}
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +040028 ports:
29 - protocol: TCP
30 port: 9402
gioc895c1d2026-07-23 17:18:25 +040031 name: http-metrics
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +040032 selector:
33 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
34 app.kubernetes.io/instance: {{ .Release.Name }}
35 app.kubernetes.io/component: "controller"
36{{- end }}