better integration with Kubernetes healthcheck #863
Labels
needs-investigation
An issue where futhur investigation is required
question
A question about NuxtAuth
Describe the feature
When we try to host our nuxt3 + nuxt-auth project in kubernetes, we run into the following problem:
For kubernetes, we need a healthcheck which responds with 200 if the application is up. This healthcheck must be provided before nuxt-auth is initialized, since nuxt-auth returns 503 until it is able to reach the own hostname.
In kubernetes, the own hostname is reachable, if the healthcheck is successful.
This is now a chicken-egg problem, nuxt-auth cannot initialize correctly as the hostname is not assigned to the container, but kubernetes does not assign the hostname as the application is not correctly initialized.
How would you implement this?
It would be great to have a healthckech route provided this package that returns 200 status even before nuxt-auth is fully initialized. If we just add a simple healthcheck server middleware, that still returns 503 as the nuxt-auth package itself returns 503.
Additional information
Provider
The text was updated successfully, but these errors were encountered: