From 724e64347629130ad05fa719a6f1d5c27a813379 Mon Sep 17 00:00:00 2001 From: Sharjeel Aziz Date: Thu, 26 Oct 2023 09:37:44 -0400 Subject: [PATCH 1/2] 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', From 30d134f2d8a5f5e4a0c343ea60bc7eeba6b190de Mon Sep 17 00:00:00 2001 From: Sharjeel Aziz Date: Fri, 27 Oct 2023 10:14:08 -0400 Subject: [PATCH 2/2] Update startup probe values Co-authored-by: Jannik Hollenbach --- juice-balancer/src/kubernetes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juice-balancer/src/kubernetes.js b/juice-balancer/src/kubernetes.js index 5aef1b58d..742183411 100644 --- a/juice-balancer/src/kubernetes.js +++ b/juice-balancer/src/kubernetes.js @@ -114,8 +114,8 @@ const createDeploymentForTeam = async ({ team, passcodeHash }) => { path: '/rest/admin/application-version', port: 3000, }, - failureThreshold: 30, - periodSeconds: 10, + failureThreshold: 150, + periodSeconds: 2, }, volumeMounts: [ {