github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/cert-manager/templates/webhook-service.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: {{ template "webhook.fullname" . }} 5 namespace: {{ include "cert-manager.namespace" . }} 6 {{- with .Values.webhook.serviceAnnotations }} 7 annotations: 8 {{ toYaml . | indent 4 }} 9 {{- end }} 10 labels: 11 app: {{ include "webhook.name" . }} 12 app.kubernetes.io/name: {{ include "webhook.name" . }} 13 app.kubernetes.io/instance: {{ .Release.Name }} 14 app.kubernetes.io/component: "webhook" 15 {{- include "labels" . | nindent 4 }} 16 {{- with .Values.webhook.serviceLabels }} 17 {{- toYaml . | nindent 4 }} 18 {{- end }} 19 spec: 20 type: {{ .Values.webhook.serviceType }} 21 {{- with .Values.webhook.loadBalancerIP }} 22 loadBalancerIP: {{ . }} 23 {{- end }} 24 ports: 25 - name: https 26 port: 443 27 protocol: TCP 28 targetPort: "https" 29 selector: 30 app.kubernetes.io/name: {{ include "webhook.name" . }} 31 app.kubernetes.io/instance: {{ .Release.Name }} 32 app.kubernetes.io/component: "webhook"