-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[WIP] Adding livez and readyz endpoints #548
Conversation
Welcome @hanumanthan! |
Hi @hanumanthan. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @serathius |
where |
For successfully scraped node, I am checking if internal storage has at least one node. |
|
Please implement probes as described on design or propose to change it
|
@serathius Updated the PR. Please have a look |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hanumanthan The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -116,6 +117,10 @@ func (p *Storage) GetContainerMetrics(pods ...apitypes.NamespacedName) ([]api.Ti | |||
} | |||
|
|||
func (p *Storage) Store(batch *MetricsBatch) error { | |||
// No node has been scraped. Return so the previous updated cache remains intact |
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.
I'm not sure about leaving not clearing cache. HPA and VPA are prepared to handle missing data, but returning stale data could lead to bad scaping decisions.
Looks good, just need to figure out how to check apiserver connection. I will try to look into that |
@hanumanthan: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing as @hanumanthan confirmed that they will not be able to finish work on PR (confirmation #542 (comment)) |
What this PR does / why we need it:
Exposing
livez
endpoint - Metrics Server is alive if it is able to respond to HTTP request and there was a scrape job that finished (no success needed) within last periodWhich issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #542