From a9adcaa99407a3552461cf96328f8355e320c7cf Mon Sep 17 00:00:00 2001 From: Mikael Bjerga Date: Tue, 19 Nov 2024 12:50:41 +0100 Subject: [PATCH] =?UTF-8?q?Tillat=20podene=20mer=20tid=20p=C3=A5=20startup?= =?UTF-8?q?=20ved=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inntektsmelding/api/HelsesjekkerRouting.kt | 3 +++ config/nais.yml | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/HelsesjekkerRouting.kt b/api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/HelsesjekkerRouting.kt index 921e0fdea..4813d9b6d 100644 --- a/api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/HelsesjekkerRouting.kt +++ b/api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/HelsesjekkerRouting.kt @@ -10,6 +10,9 @@ import no.nav.helsearbeidsgiver.felles.metrics.Metrics fun Application.helsesjekkerRouting() { routing { + get("started") { + call.respondText("I started") + } get("isalive") { call.respondText("I'm alive") } diff --git a/config/nais.yml b/config/nais.yml index 2405aae9e..d9fa40196 100644 --- a/config/nais.yml +++ b/config/nais.yml @@ -27,12 +27,15 @@ spec: scalingStrategy: cpu: thresholdPercentage: 75 - liveness: - path: isalive + startup: + path: /started initialDelay: 10 + periodSeconds: 5 + failureThreshold: 22 + liveness: + path: /isalive readiness: - path: isready - initialDelay: 10 + path: /isready secureLogs: enabled: true observability: