| Giorgi Lekveishvili | ae1a4a4 | 2023-12-07 13:23:17 +0400 | [diff] [blame] | 1 | apiVersion: apps/v1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 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 }} |
| 11 | spec: |
| 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: |
| Giorgi Lekveishvili | 5c2c0b9 | 2023-12-07 17:35:40 +0400 | [diff] [blame^] | 36 | - name: API_GROUP_NAME |
| 37 | value: {{ .Values.apiGroupName | quote }} |
| 38 | - name: RESOLVER_NAME |
| 39 | value: {{ .Values.resolverName | quote }} |
| Giorgi Lekveishvili | ae1a4a4 | 2023-12-07 13:23:17 +0400 | [diff] [blame] | 40 | ports: |
| 41 | - name: https |
| 42 | containerPort: 443 |
| 43 | protocol: TCP |
| 44 | livenessProbe: |
| 45 | httpGet: |
| 46 | scheme: HTTPS |
| 47 | path: /healthz |
| 48 | port: https |
| 49 | readinessProbe: |
| 50 | httpGet: |
| 51 | scheme: HTTPS |
| 52 | path: /healthz |
| 53 | port: https |
| 54 | volumeMounts: |
| 55 | - name: certs |
| 56 | mountPath: /tls |
| 57 | readOnly: true |
| 58 | resources: |
| 59 | {{ toYaml .Values.resources | indent 12 }} |
| 60 | volumes: |
| 61 | - name: certs |
| 62 | secret: |
| 63 | secretName: {{ include "cert-manager-webhook-pcloud.servingCertificate" . }} |
| 64 | {{- with .Values.nodeSelector }} |
| 65 | nodeSelector: |
| 66 | {{ toYaml . | indent 8 }} |
| 67 | {{- end }} |
| 68 | {{- with .Values.affinity }} |
| 69 | affinity: |
| 70 | {{ toYaml . | indent 8 }} |
| 71 | {{- end }} |
| 72 | {{- with .Values.tolerations }} |
| 73 | tolerations: |
| 74 | {{ toYaml . | indent 8 }} |
| 75 | {{- end }} |