Skip to content

Commit

Permalink
Tillat podene mer tid på startup ved deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga committed Nov 19, 2024
1 parent f37e44d commit a9adcaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
11 changes: 7 additions & 4 deletions config/nais.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9adcaa

Please sign in to comment.