-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
area/vertical-pod-autoscalerkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Milestone
Description
Which component are you using?:
vertical-pod-autoscaler
/area vertical-pod-autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
When In-Place Update of Pod Resources feature is enabled (see KEP for details):
Pod.Spec.Containers[i].Resourcesbecomes purely a declaration, denoting the desired state of Pod resources.Pod.Status.ContainerStatuses[i].Resources(new field, typev1.ResourceRequirements) shows the actual resources held by the Pod and its Containers for running containers, and the allocated resources for non-running containers. (Same applies to initContainers).
We need to modify VPA's code so that when InPlaceVerticalScaling is enabled in a cluster, the resource requests and limits should be read from the container status field (Pod.Status.ContainerStatuses[i].Resources). Otherwise, we should fallback to the resource requests defined in the pod spec (Pod.Spec.Containers[i].Resources).
maxcao13, bernot-dev, omerap12 and luistilingue
Metadata
Metadata
Assignees
Labels
area/vertical-pod-autoscalerkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.