From b4e04ee2fc8a743da27327261a6670ce5156da38 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:25:54 +0100 Subject: [PATCH] Update existing Helm Chart to use liveness and readiness endpoints --- .../templates/preview_service/deployment.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/utils/helm/speckle-server/templates/preview_service/deployment.yml b/utils/helm/speckle-server/templates/preview_service/deployment.yml index d55ef7d88..77b03a395 100644 --- a/utils/helm/speckle-server/templates/preview_service/deployment.yml +++ b/utils/helm/speckle-server/templates/preview_service/deployment.yml @@ -32,13 +32,14 @@ spec: livenessProbe: initialDelaySeconds: 60 periodSeconds: 60 - exec: - command: - - node - - -e - # just a dummy output for now, not yet sure how to do liveliness with the new setup. - # if there is no job in the queue, the service does nothing, so the prev solution would not work - - {{ printf "console.log(%s)" .Values.preview_service.puppeteer.timeoutMilliseconds }} + httpGet: + path: /liveness + port: metrics + + readinessProbe: + httpGet: + path: /readiness + port: metrics resources: requests: