-
Notifications
You must be signed in to change notification settings - Fork 644
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
Support waiting for kube-apiserver to be ready with timout during NPD startup #308
Conversation
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.
Overall lgtm. Just a nit question.
|
||
glog.Infof("Waiting for kube-apiserver to be ready (timeout %v)...", npdo.APIServerWaitTimeout) | ||
if err := waitForAPIServerReadyWithTimeout(c, npdo); err != nil { | ||
glog.Warningf("kube-apiserver did not become ready: %v", err) |
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.
What's the error message when timeout happens? Just want to make sure something like time out waiting for the kube-apiserver
is included in the warning message.
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.
Added more info to the message.
For example:
W0709 10:30:01.060769 231463 k8s_exporter.go:56] kube-apiserver did not become ready: timed out on waiting for kube-apiserver to return the node object: timed out waiting for the condition
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wangzhen127, yguo0905 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry pick #308 to v0.6: Support waiting for kube-apiserver to be ready with timout during NPD startup
Fixes #295
Manually tested using a cluster.
/assign @wangzhen127 @Random-Liu