Closed georglauterbach closed 3 months ago
Hi,
The server has /api/alive for checking the API server. Is it similar to your suggestion?
That is indeed something viable for a readiness or liveness probe. Do you think querying this for to check that the probe has started properly is viable as well?
Apart from that, I think this should be documented somewhere :)
Do you think querying this for to check that the probe has started properly is viable as well?
I'm sorry, I don't understand your question. Could you please elaborate more?
I'm sorry, I don't understand your question. Could you please elaborate more?
It was late - probably too late when I wrote this; I'm sorry.
Do you think querying the health endpoint (sending a GET
to /api/alive
) to check whether the container has spun up (finished initialization) is a good idea? Are there any caveats?
HTTP 200 on /api/alive means the API service/container is up. It doesn't tell whether it could connect to the DB.
How would one find out?
I guess having /api/health
is quite good; closing this for now.
I am deploying
docker.io/bitwarden/self-host:2024.1.2-beta
in a Kubernetes cluster with great success. It works flawlessly, and I am genuinely grateful for that. As an improvement to the already existing deployment, I want to propose an internal (listening on127.0.0.1
) API endpoint that one can query. Authelia, for example, can be checked on/api/health
. This can then easily be used to write astartupProbe
or areadinessProbe
:The upside would be improved monitoring of the container itself.