-
Notifications
You must be signed in to change notification settings - Fork 455
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
fix: kube-ovn-controller cannot be ready when ENABLE_METRICS is false #4886
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 12543295303Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Signed-off-by: zhaocongqi <[email protected]>
Signed-off-by: zhaocongqi <[email protected]>
Signed-off-by: zhaocongqi <[email protected]>
Signed-off-by: zhaocongqi <[email protected]>
ed19cf4
to
4f1463c
Compare
Signed-off-by: zhaocongqi <[email protected]>
util.LogFatalAndExit(err, "failed to listen on %s", util.JoinHostPort(metricsAddr, config.PprofPort)) | ||
} | ||
svr := manager.Server{ | ||
Name: "metrics", |
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.
Name: "metrics", | |
Name: "health-check", |
Server: &http.Server{ | ||
Handler: http.NewServeMux(), | ||
MaxHeaderBytes: 1 << 20, | ||
IdleTimeout: 90 * time.Second, | ||
ReadHeaderTimeout: 32 * time.Second, | ||
}, |
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.
We need to serve TLS when config.SecureServing
is true, or do not use TLS in heclth check when metrics is disabled.
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #4862