https://kotlinlang.org logo
#ktor
Title
# ktor
a

Arnab

01/10/2022, 1:57 PM
Is there anyone who knows of a guide on how to build a readiness/liveness endpoint for your ktor application? Is it as simple as configuring a singleton to respond with
200
or
503
?
s

simon.vergauwen

01/10/2022, 2:02 PM
That’s what I’m doing on Kubernetes.
🙌 1
Copy code
get("/health-check") {       call.apiResponse(BodyResponse(OK, HealthStatus("Healthy")))
}
👀 1
2 Views