From 724e64347629130ad05fa719a6f1d5c27a813379 Mon Sep 17 00:00:00 2001 From: Sharjeel Aziz Date: Thu, 26 Oct 2023 09:37:44 -0400 Subject: [PATCH] Add startup probe --- juice-balancer/src/kubernetes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/juice-balancer/src/kubernetes.js b/juice-balancer/src/kubernetes.js index 66522bca6..5aef1b58d 100644 --- a/juice-balancer/src/kubernetes.js +++ b/juice-balancer/src/kubernetes.js @@ -109,6 +109,14 @@ const createDeploymentForTeam = async ({ team, passcodeHash }) => { initialDelaySeconds: 30, periodSeconds: 15, }, + startupProbe: { + httpGet: { + path: '/rest/admin/application-version', + port: 3000, + }, + failureThreshold: 30, + periodSeconds: 10, + }, volumeMounts: [ { name: 'juice-shop-config',