-
Notifications
You must be signed in to change notification settings - Fork 140
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
extend timeout to avoid not ready containers #1325
Conversation
pkg/render/node.go
Outdated
@@ -1296,6 +1296,9 @@ func (c *nodeComponent) nodeLivenessReadinessProbes() (*v1.Probe, *v1.Probe) { | |||
} | |||
rp := &v1.Probe{ | |||
Handler: v1.Handler{Exec: &v1.ExecAction{Command: readinessCmd}}, | |||
//period is default but timeout is half to account for some slow machines |
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'd prefer this explain why we're not using the default but with a caveat of keeping it less than the period. Maybe something like
Set the TimeoutSeconds greater than the default of 1 to allow additional time on loaded nodes. Keep this time less than the PeriodSeconds.
Also it looks like you'll need to fix up some tests. I don't know if you can see the test output but if not you can hopefully run |
Fixing CI for Timeout change
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
* extend timeout to avoid not ready containers that are slow but otherwise fine Co-authored-by: Erik Stidham <erik@tigera.io>
extend timeout to avoid not ready containers (pick #1325 r1.17)
* extend timeout to avoid not ready containers that are slow but otherwise fine Co-authored-by: Erik Stidham <erik@tigera.io>
extend timeout to avoid not ready containers (pick #1325 r1.18)
Fixes #1324 |
Description
This happens when machines are slow/busy. calico-node containers show as unready.
See issue #1324 but readiness probe timeout seems to be abit short.
For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.