-
Notifications
You must be signed in to change notification settings - Fork 40.6k
fix(kubelet): update lease duration when config changes #131749
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
Conversation
/assign @Jefftree |
@cartermckinnon Would you be able to add a test case to verify this scenario? Otherwise code lgtm. |
d6a6c86
to
2fe65bb
Compare
Thanks @Jefftree! Added a test and verified it fails without this change 👍 |
/triage accepted |
LGTM label has been added. Git tree hash: 0f604d6b08b81919d6187e204108646325a64aee
|
/cc @liggitt can you take a look at this one? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cartermckinnon, liggitt 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 |
Thanks for the fix, it's not clear to me this reaches the bar for backporting. This isn't a regression, right? Do we have evidence this is a severe critical bug? |
I don't feel strongly either way, we can carry this downstream. It's not a regression AFAICT. If |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The lease controller used by
kubelet
does not update the lease's duration when kubelet's config changes.That is, if a running kubelet's config is changed to extend the lease duration, and kubelet is restarted -- the duration of the lease is not updated to reflect kubelet's config.
The controller will begin updating the lease at the new interval (
0.25 * duration
), making lease validity more fragile.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: