| {{- if .Values.prometheus.enabled }} |
| name: {{ template "cert-manager.fullname" . }} |
| namespace: {{ .Release.Namespace | quote }} |
| {{- with .Values.serviceAnnotations }} |
| {{ toYaml . | indent 4 }} |
| app: {{ include "cert-manager.name" . }} |
| app.kubernetes.io/name: {{ include "cert-manager.name" . }} |
| app.kubernetes.io/instance: {{ .Release.Name }} |
| app.kubernetes.io/component: "controller" |
| {{- include "labels" . | nindent 4 }} |
| {{- with .Values.serviceLabels }} |
| {{- toYaml . | nindent 4 }} |
| name: tcp-prometheus-servicemonitor |
| targetPort: {{ .Values.prometheus.servicemonitor.targetPort }} |
| app.kubernetes.io/name: {{ include "cert-manager.name" . }} |
| app.kubernetes.io/instance: {{ .Release.Name }} |
| app.kubernetes.io/component: "controller" |