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
kubelet: add probe termination to graceful shutdowns #105215
Conversation
/triage accepted |
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
/cc @wzshiming |
Sorry, if fixed #105014, this pr may not need to do this again |
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.
/priority important-soon
Bug affects usability of node graceful shutdown feature, so could be a candidate for backport.
/lgtm
/assign @bobbypage |
Thanks for adding this. /lgtm Also /cc @wzshiming since it will require #102915 to be updated. |
Yes, I need to resolve the conflict again, I wish could merge #102915 sooner /lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 249043822, mrunalp, rphillips, wzshiming 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
Is it expected that readiness probes will stop running? If graceful termination is set for a long time, we may need to ensure that the pod will turn into not ready state before the removing the pod. We discussed similar in this PR: #92385 |
@rphillips , @SergeyKanzhelev brings up a good point that the pod should be marked not ready, i.e. to ensure that traffic will not be sent to the pod during graceful shutdown. Do we need to handle readiness vs liveness probe in special case? |
I think Ideally we just keep the probe running. Especially for the cases of a long termination. Created #105780 |
What type of PR is this?
/kind bug
/sig node
What this PR does / why we need it:
Node Graceful Shutdown does not terminate probes upon kubelet shutdown. This can potentially cause a pod to be terminated from a Liveness probe failing.
This fix will shutdown all the probes on the pod upon shutdown.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
cc @bobbypage @mrunalp
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: