-
Notifications
You must be signed in to change notification settings - Fork 245
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
Issue 1548 #1814
base: master
Are you sure you want to change the base?
Issue 1548 #1814
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: omerap12 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 |
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Thanks @omerap12 for starting to work on this! There was one misconception regarding my description in #1548 (this PR seems to address that, i.e. nfd-master, instead of #1806).
In addition to monitoring the (internal) metrics server we could watch the goroutines of node updater pool (and set health to false if they exit, for whatever reaseon). Then we could think about using SetWatchErrorHandler.()
to monitor the informers in the nfd api controller.
pkg/nfd-master/nfd-master.go
Outdated
// Check method for customHealthServer | ||
func (s *customHealthServer) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error) { | ||
klog.InfoS("Check request received") | ||
metricServerStatus, err := s.CheckPods("kube-system", "k8s-app=metrics-server") |
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.
Oh, sorry for the ambiguity. I wasn't thinking about kubernetes metrics-server but the metrics http server inside nfd-master itself that is started with utils.CreateMetricsServer()
. We could e.g. just set a health flag to false if the goroutine started there exits.
Hi @marquiz, thanks for the review! I’ll make the necessary code adjustments and have updated the title as well, lol. I’ll keep you posted. |
Hey @marquiz, Here's a summary of what I've done so far:
|
@marquiz , Friendly ping :) |
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-sigs/prow repository. |
No description provided.