From 1712272cd02ea338fd4e3d956b81538cfb53a7af Mon Sep 17 00:00:00 2001 From: Dimitri Saridakis Date: Mon, 19 Jun 2023 14:54:47 +0100 Subject: [PATCH] perf: addition of liveness and readiness probes to mcad deployment template --- config/internal/mcad/deployment.yaml.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/internal/mcad/deployment.yaml.tmpl b/config/internal/mcad/deployment.yaml.tmpl index 13d118ce3..7985bcb06 100644 --- a/config/internal/mcad/deployment.yaml.tmpl +++ b/config/internal/mcad/deployment.yaml.tmpl @@ -40,6 +40,18 @@ spec: volumeMounts: - name: temp-vol mountPath: /tmp + livenessProbe: + httpGet: + path: /healthz + port: 8081 + timeoutSeconds: 5 + periodSeconds: 5 + readinessProbe: + httpGet: + path: /readyz + port: 8081 + timeoutSeconds: 5 + periodSeconds: 5 serviceAccountName: mcad-controller-{{.Name}} volumes: - name: temp-vol