From 6044d10f04f4af2123eb941da72bcd8c9fa160cb Mon Sep 17 00:00:00 2001 From: Trinh Pham <9128061+trinhpham@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:49:19 +0000 Subject: [PATCH] Add probes customization --- .../templates/deployment.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/helm/designate-certmanager-webhook/templates/deployment.yaml b/helm/designate-certmanager-webhook/templates/deployment.yaml index e969f919..b631c84b 100644 --- a/helm/designate-certmanager-webhook/templates/deployment.yaml +++ b/helm/designate-certmanager-webhook/templates/deployment.yaml @@ -71,16 +71,33 @@ spec: - name: https containerPort: 8443 protocol: TCP + {{- if .Values.livenessProbe }} + livenessProbe: {{ toYaml .Values.livenessProbe | nindent 12 }} + {{- else }} livenessProbe: httpGet: scheme: HTTPS path: /healthz port: https + {{- end}} + {{- if .Values.readinessProbe }} + readinessProbe: {{ toYaml .Values.readinessProbe | nindent 12 }} + {{- else }} readinessProbe: httpGet: scheme: HTTPS path: /healthz port: https + {{- end}} + {{- if .Values.startupProbe }} + startupProbe: {{ toYaml .Values.startupProbe | nindent 12 }} + {{- else }} + startupProbe: + httpGet: + scheme: HTTPS + path: /healthz + port: https + {{- end}} volumeMounts: - name: certs mountPath: /tls