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
Add /healthz endpoint for Gardenlet #2309
Conversation
/kind/enhancement |
Nice PR! |
No specific reason, it just was like this before. I can also move both to HTTPS, should be no problem. |
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.
Looks good to me in general.
I noticed one issue with the health check though, if the Gardenlet is responsible for more than one seed and the lease of one of the seeds cannot be renewed. This scenario will end up in a constantly swapping health state. OTOH, such a setup is not recommended for production use cases, so I can understand if you don't want to tackle it. WDYT?
Do you have a suggestion how what the expected behaviour should be and how to implement it? |
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.
/lgtm
/hold |
/area/quality |
/unhold |
Now when #2361 is merged, I've removed the release note
|
What this PR does / why we need it:
This PR enhances the Gardenlet with a HTTPS server that serves the
/healthz
and/metrics
endpoints. The/healthz
endpoint returns200 OK
if the Gardenlet can regularly renew its seed lease. Otherwise, it will return500 Internal Server Error
.Release note: