-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
[FG:InPlacePodVerticalScaling] Add UpdatePodSandboxResources CRI method #128123
base: master
Are you sure you want to change the base?
[FG:InPlacePodVerticalScaling] Add UpdatePodSandboxResources CRI method #128123
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @felipeagger. 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. |
eb28f8b
to
7fd7068
Compare
@Karthik-K-N Where in the Kubelet will call UpdatePodSandboxResources after it has reconfigured the pod-level cgroups ? |
I am not sure either, Need to explore, If I find I will update here. Thank you. |
7fd7068
to
857c205
Compare
/cc @vinaykul Where in the Kubelet will call UpdatePodSandboxResources after it has reconfigured the pod-level cgroups ? inside kubeGenericRuntimeManager.createPodSandbox? |
Please see: kubernetes/pkg/kubelet/kuberuntime/kuberuntime_manager.go Lines 693 to 724 in d67e654
/cc @tallclair |
/ok-to-test |
5698a36
to
8d66773
Compare
8d66773
to
50d0f92
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: felipeagger 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 |
6d9a16d
to
e9214cb
Compare
@tallclair I made the adjusts, can you check? pls |
@@ -210,6 +210,15 @@ func (m *kubeGenericRuntimeManager) generateContainerResources(pod *v1.Pod, cont | |||
} | |||
} | |||
|
|||
// generateUpdatePodSandboxResourcesRequest generates platform specific (linux) podsandox resources config for runtime | |||
func (m *kubeGenericRuntimeManager) generateUpdatePodSandboxResourcesRequest(sandboxID string, pod *v1.Pod) *runtimeapi.UpdatePodSandboxResourcesRequest { |
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.
@tallclair This function cannot be inline because the functions convertOverheadToLinuxResources and calculateSandboxResources are platform specific, and break on typechecker.
@felipeagger: 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. |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/remove-sig api-machinery |
/remove-wg device-management |
What type of PR is this?
/kind feature
What this PR does / why we need it:
As of Kubernetes v1.20, the CRI has included support for in-place resizing of containers via the UpdateContainerResources API, which is implemented by both containerd and CRI-O. Additionally, the ContainerStatus message includes a ContainerResources field, which reports the current resource configuration of the container.
Even though pod-level cgroups are currently managed by the Kubelet, runtimes may rely need to be notified when the resource configuration changes.
Doc: https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/1287-in-place-update-pod-resources/README.md#cri-changes
Which issue(s) this PR fixes:
Fixes #128069
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: