-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define a Docker health check #2046
Comments
Hi @GergelyKalmar thanks for raising an issue on the Cloud SQL Proxy 😄 I'll take a look into this and see about adding a built-in health check to the docker image. |
I bet the new In terms of Kubernetes, I see the Docker healthcheck has been disabled for years now: kubernetes/kubernetes#50703. So I think that means we could safely add a health check to our images without affecting kubernetes. |
Hm, I'm not yet sure if the |
Got it. I think it would be nice if we could avoid a dependency on curl or similar, such that people could use this with the distroless container. Maybe |
Sure, that should work fine! |
Feature Description
I'd like to use Docker Compose's health checks to bring up the proxy before starting dependent services, but I can't seem to be able to ping the readiness endpoints from within the container image.
It would be awesome if there was a health check defined in the cloud-sql-proxy image itself (see https://docs.docker.com/engine/reference/builder/#healthcheck).
Sample code
No response
Alternatives Considered
I tried pinging the existing readiness endpoint:
However, it seems that
curl
is not available in the Docker image, and neither is any other utility that would allow one to hit the readiness endpoint.Additional Details
No response
The text was updated successfully, but these errors were encountered: