From 36a20bf753fb16e31d0e1162798a1766b5a4d17d Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Wed, 29 Nov 2023 10:33:45 +0100 Subject: [PATCH] Add a startup probe --- diracx/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/diracx/templates/deployment.yaml b/diracx/templates/deployment.yaml index 37fc857..0eb3167 100644 --- a/diracx/templates/deployment.yaml +++ b/diracx/templates/deployment.yaml @@ -115,6 +115,12 @@ spec: httpGet: path: /api/docs/ port: http + startupProbe: + httpGet: + path: /api/docs/ + port: http + failureThreshold: 30 + periodSeconds: 5 command: ["bash", "/entrypoint.sh"] args: - uvicorn