Description
Description
What problem are you trying to solve?
The feature defined in KEP-2837: Pod Level Resource Specifications is planned to graduate to beta and become enabled by default in Kubernetes 1.34. This feature allows users to specify resource requirements at the pod level, in addition to the existing container-level resource specifications. For more details, please refer to the official documentation and KEP-2837.
KEP-2837 introduced another change to how resource requests are calculated. Prior to the implementation of this KEP, the logic for computing complex resource requests was moved into a shared library under component-helpers. As a result, components that need to calculate resource requirements can now use the k8s.io/component-helpers/resource package.
Currently, it appears that Karpenter uses its own implementation for calculation of resource requirements. To support Pod Level Resources, the following updates will likely be necessary:
- Use PodRequests from k8s.io/component-helpers/resource.
- Update any custom logic to support Pod Level Resources.
Just for reference, Cluster Autoscaler has already been migrated to use k8s.io/component-helpers/resource
in kubernetes/autoscaler#8049.
How important is this feature to you?
Once Kubernetes 1.34 is released and users start using the Pod Level Resources feature, it’s likely that Karpenter will run into issues due to inaccurate node provisioning.
Also, as part of the beta graduation criteria for KEP-2837, we’re supposed to share this issue with the Karpenter folks, so I’ve created an issue. Please refer to the beta criteria and kubernetes/enhancements#5362 (comment) for more details.
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment