-
Notifications
You must be signed in to change notification settings - Fork 41.1k
[FG:InPlacePodVerticalScaling] Enable removing resource limits from containers #127143
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
base: master
Are you sure you want to change the base?
Conversation
Hi @hshiina. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/kind feature |
/ok-to-test |
f5c6754
to
54bc5fd
Compare
/test pull-kubernetes-node-kubelet-serial-podresize |
/assign |
Hello @hshiina @tallclair @natasha41575 |
/lgtm @hshiina are the test failures unrelated? |
LGTM label has been added. Git tree hash: 5911b5d899102964e5ff59df7661a7c5fb2598a7
|
/retest |
3 similar comments
/retest |
/retest |
/retest |
Hi @haircommander @hshiina @natasha41575 If so, a gentle reminder that the code freeze has started 02:00 UTC Friday 25th July 2025. Please make sure any PRs have both lgtm and approved labels ASAP, and file an Exception if you haven't done it yet. Thanks! |
New changes are detected. LGTM label has been removed. |
This fix enables removing resource limits and requests from containers by following changes: - Update pod cgroup resources to max - Update container resources to max with CRI API UpdateContainerResource(). - Display resource limits in container status while limits are being removed.
@hshiina: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@tallclair is out this week, and I'm not sure if there is another approver with sufficient context who will be able to take a look, so this may slip to 1.35 |
/milestone v1.35 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR fixes handling cases where resources limits are max at InPlacePodVerticalScaling.
When one of containers in a pod has no limits for a resource, no limits will be configured in the cgroup of the pod. This fix allows resizing the resource in a container that has limits when another container in the pod does not have limits for the resource. In doPodResizeAction(), this fix allows a container to be resized even if the pod resources are unlimited (the values in the pod resource is nil).
This PR also enables removing resource limits from containers by following changes:
UpdateContainerResource()
.Which issue(s) this PR fixes:
Fixes #128675
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: