blob: 5f93950495f35c921205644609cd929cedf073ea [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001apiVersion: v1
2kind: Service
3metadata:
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 }}
19spec:
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"