-
Notifications
You must be signed in to change notification settings - Fork 894
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
ci: etcd using the /livez for LivenessProbe and /readyz for StartupProbe. #5438
base: master
Are you sure you want to change the base?
Conversation
…obe. Signed-off-by: Lan Liang <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
/cc @zhzhuang-zju |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5438 +/- ##
==========================================
- Coverage 30.85% 30.85% -0.01%
==========================================
Files 640 640
Lines 44384 44384
==========================================
- Hits 13695 13694 -1
- Misses 29709 29710 +1
Partials 980 980
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
periodSeconds: 1 | ||
timeoutSeconds: 15 |
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.
this is from kubeadm
/assign |
httpGet: | ||
host: 127.0.0.1 | ||
path: /readyz | ||
port: 2381 |
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.
The port should be 2379, as our listen-client-urls
is set to https://0.0.0.0:2379
.
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.
Liveness: http-get http://127.0.0.1:2381/livez delay=10s timeout=15s period=10s #success=1 #failure=8
Readiness: http-get http://127.0.0.1:2381/readyz delay=0s timeout=15s period=1s #success=1 #failure=3
Startup: http-get http://127.0.0.1:2381/readyz delay=10s timeout=15s period=10s #success=1 #failure=24
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.
kubeadm have the arg of --listen-metrics-urls=http://127.0.0.1:2381
, so this is 2381, and karmada have not set it.
path: /readyz | ||
port: 2381 | ||
scheme: HTTP | ||
periodSeconds: 1 |
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.
Is once per second too frequent?
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.
This is the expected effect of etcd readyz API design, see https://docs.google.com/document/d/1PaUAp76j1X92h3jZF47m32oVlR8Y-p-arB5XOB7Nb6U/edit
path: /livez | ||
port: 2381 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 |
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.
The initialDelaySeconds
can be set a bit higher.
@liangyuanpeng The Aug 28 02:48:37 karmada-host-control-plane kubelet[682]: E0828 02:48:37.991001 682 prober.go:239] "Unable to write all bytes from execInContainer" err="short write" expectedBytes=13477 actualBytes=10240 This can cause etcd to restart continuously. |
@zhzhuang-zju Thank you for your time! seems like this have some weird problem, let me make it to draft first.
https://docs.google.com/document/d/1PaUAp76j1X92h3jZF47m32oVlR8Y-p-arB5XOB7Nb6U/edit#heading=h.78g8a1kutqd8 |
What type of PR is this?
/kind cleanup
etcd using the /livez for LivenessProbe and /readyz for StartupProbe at CI first,
part of #5419
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: