-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
feat: Add ability to delay startup #619
Comments
We could just add a sleep function with a configurable duration (e.g. |
Sounds amazing! |
@TwiN @PurseChicken |
@vax-r Feel free to give it a shot! |
Hello @TwiN , @PurseChicken |
Describe the feature request
I would like for there to be the ability to add a delay to the image starting up before executing /gatus.
I imagine this can be done internally based on an environment variable (e.g. GATUS_SLEEP). What might be easier is to modify the dockerfile to build from golang:alpine vs scratch. This will allow the use of sh or /bin/ash so that in Kubernetes, for example, we can overwrite the entrypoint be be something like
/bin/ash -c sleep 5 /gatus
.Why do you personally want this feature to be implemented?
The reason why I am looking into this is because when using a sidecar in Kubernetes (for example cloud-sql-proxy), the gatus image comes up before the sidecar does and that causes an error since the database is not available yet. A simple way to solve this is to add a configurable delay to the gatus image to give the sidecar enough time to be ready for connections.
The text was updated successfully, but these errors were encountered: