From 0dab8c7e6501381c4e2cbe2e088e05400b902968 Mon Sep 17 00:00:00 2001 From: Dimitri Saridakis Date: Mon, 26 Jun 2023 09:37:20 +0100 Subject: [PATCH] refactor: add liveness and readyness probes to instascale deployment --- config/internal/instascale/deployment.yaml.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/internal/instascale/deployment.yaml.tmpl b/config/internal/instascale/deployment.yaml.tmpl index 4c704c80..fe21ade6 100644 --- a/config/internal/instascale/deployment.yaml.tmpl +++ b/config/internal/instascale/deployment.yaml.tmpl @@ -21,4 +21,15 @@ spec: image: {{.ControllerImage}} name: instascale resources: {{.ControllerResources}} + livenessProbe: + httpGet: + path: /healthz + port: 8081 + periodSeconds: 5 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /readyz + port: 8081 + periodSeconds: 10 serviceAccountName: instascale-{{.Name}}-sa