From 2cc118bcd3ab49dcd60dc30c1ea103173d254e4c Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Thu, 7 Mar 2024 18:58:01 +0300 Subject: [PATCH] Added startup probe to cater for AppSetup work --- server/main.bicep | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/main.bicep b/server/main.bicep index 0981e32b..c20b647b 100644 --- a/server/main.bicep +++ b/server/main.bicep @@ -321,6 +321,13 @@ resource app 'Microsoft.App/containerApps@2023-05-01' = { memory: '0.5Gi' } probes: [ + { + type: 'Startup' + httpGet: { port: 8080, path: '/liveness' } + initialDelaySeconds: 10 + timeoutSeconds: 100 + failureThreshold: 10 + } { type: 'Liveness', httpGet: { port: 8080, path: '/liveness' } } { type: 'Readiness'