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
added an option to enable GCP healthcheck endpoints #110
added an option to enable GCP healthcheck endpoints #110
Conversation
Have you considered using |
@ploxiln Hmm. Interesting idea. I think it's not quite the right approach, though, because if the upstream app were to get sad, GCP would begin killing and restarting the proxy, even if it were actually operating perfectly. I'd rather the proxy remain up and happy, waiting for the upstream to return. |
Looks good to me. Thank you for incorporating those changes! Good stuff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit but I'm happy after that, thanks for incorporating #93 in with this 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, Thanks for your work on this @timothy-spencer (and @benfdking for #93), I'll get this merged!
Description
This adds an option that lets you enable GCP healthcheck endpoints.
https://cloud.google.com/appengine/docs/flexible/custom-runtimes/configuring-your-app-with-app-yaml#updated_health_checks
It also incorporates suggestions from #93 that lets it work with GKE ingresses.
Motivation and Context
GCP likes to know when the app is up and running. Enabling these endpoints makes it so that it is easy to run the proxy in the GCP App Engine environment
How Has This Been Tested?
I use the go test ./... tests, as well as tested this by hand by launching with and without the flag enabled and attempting to go to locahost:4180/liveness_check and localhost:4180/readiness_check. With the flag enabled, I got back "OK", and without, I got the normal auth redirect.
Checklist: