Implement healthchecks #2

Open
opened 2025-04-18 07:24:44 +00:00 by decentral1se · 3 comments
Owner
> https://github.com/sebadob/rauthy/issues/854#issuecomment-2814773555
Owner

Looked into it, the container is distroless so can't make an HTTP request for those health checks.

Which I really hate that docker-compose still doesn't support the k8s feature where an external process (kubelet) performs the health check.

The solution would either require a custom image (IMO, a bad solution, since you want minimal containers for security purposes) or for the binary itself to support something like --healthcheck command, which pings the main process and exits 1 or 0.

Looked into it, the container is distroless so can't make an HTTP request for those health checks. Which I really hate that docker-compose still doesn't support the k8s feature where an external process (kubelet) performs the health check. The solution would either require a custom image (IMO, a bad solution, since you want minimal containers for security purposes) or for the binary itself to support something like `--healthcheck` command, which pings the main process and exits 1 or 0.
Author
Owner

Damn, yeh, tricky. I would say raise it with the upstream developer, he's generally open to discuss this stuff.

I also just saw this wild approach: https://git.coopcloud.tech/coop-cloud/vikunja#healthcheck

Damn, yeh, tricky. I would say raise it with the upstream developer, he's generally open to discuss this stuff. I also just saw this wild approach: https://git.coopcloud.tech/coop-cloud/vikunja#healthcheck
Owner
As inspiration: https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/scripts/healthcheck.py
Sign in to join this conversation.
No description provided.