github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/cert-manager/templates/service.yaml (about)

     1  {{- if .Values.prometheus.enabled }}
     2  apiVersion: v1
     3  kind: Service
     4  metadata:
     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 }}
    20  spec:
    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 }}