blob: 6c39bc526987efd41ef6c7c3cc3a21356e3371b7 [file] [log] [blame]
Giorgi Lekveishviliae1a4a42023-12-07 13:23:17 +04001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: {{ include "cert-manager-webhook-pcloud.fullname" . }}
5 namespace: {{ .Values.certManager.namespace | quote }}
6 labels:
7 app: {{ include "cert-manager-webhook-pcloud.name" . }}
8 chart: {{ include "cert-manager-webhook-pcloud.chart" . }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
11spec:
12 replicas: {{ .Values.replicaCount }}
13 selector:
14 matchLabels:
15 app: {{ include "cert-manager-webhook-pcloud.name" . }}
16 release: {{ .Release.Name }}
17 template:
18 metadata:
19 labels:
20 app: {{ include "cert-manager-webhook-pcloud.name" . }}
21 release: {{ .Release.Name }}
22 spec:
23 serviceAccountName: {{ include "cert-manager-webhook-pcloud.fullname" . }}
24 containers:
25 - name: {{ .Chart.Name }}
26 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
27 imagePullPolicy: {{ .Values.image.pullPolicy }}
28 args:
29 - /dns-challenge-solver
30 - --tls-cert-file=/tls/tls.crt
31 - --tls-private-key-file=/tls/tls.key
32{{- if .Values.logLevel }}
33 - --v={{ .Values.logLevel }}
34{{- end }}
35 env:
36 - name: GROUP_NAME
37 value: {{ .Values.groupName | quote }}
38 ports:
39 - name: https
40 containerPort: 443
41 protocol: TCP
42 livenessProbe:
43 httpGet:
44 scheme: HTTPS
45 path: /healthz
46 port: https
47 readinessProbe:
48 httpGet:
49 scheme: HTTPS
50 path: /healthz
51 port: https
52 volumeMounts:
53 - name: certs
54 mountPath: /tls
55 readOnly: true
56 resources:
57{{ toYaml .Values.resources | indent 12 }}
58 volumes:
59 - name: certs
60 secret:
61 secretName: {{ include "cert-manager-webhook-pcloud.servingCertificate" . }}
62 {{- with .Values.nodeSelector }}
63 nodeSelector:
64{{ toYaml . | indent 8 }}
65 {{- end }}
66 {{- with .Values.affinity }}
67 affinity:
68{{ toYaml . | indent 8 }}
69 {{- end }}
70 {{- with .Values.tolerations }}
71 tolerations:
72{{ toYaml . | indent 8 }}
73 {{- end }}