diff --git a/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt b/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt index 6e6d0c1..ea8ae17 100644 --- a/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt +++ b/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt @@ -28,6 +28,12 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin get("/") { call.respondText("Hello World!") } + get("/isalive"){ + call.respondText("ALIVE") + } + get("/isready"){ + call.respondText("READY") + } post("/test") { val test = call.receive() call.respond(status = HttpStatusCode.Created, message = test) diff --git a/nais.yml b/nais.yml index a145fdb..c5901ec 100644 --- a/nais.yml +++ b/nais.yml @@ -8,6 +8,12 @@ metadata: spec: image: {{ image }} port: 8080 + liveness: + path: isalive + initialDelay: 5 + readyness: + path: isready + initialDelay: 5 replicas: min: 1 max: 2