-
Notifications
You must be signed in to change notification settings - Fork 719
Open
Description
Describe the bug
Flux does not utilize the InPlacePodVerticalScaling feature gate when the only change to a workload is in resources.requests or resources.limits. Even with the feature gate enabled in Kubernetes, Flux recreates pods instead of resizing them in place as expected.
Steps to reproduce
- Enable the InPlacePodVerticalScaling feature gate in the Kubernetes cluster (or just use K8s >= 1.35)
- Deploy a workload via Flux.
- Modify only the
resources.requestsorresources.limitssettings in the workload. - Observe that Flux do whatever is expected to use subresource=resize and that the pod is not restarted.
Expected behavior
When the InPlacePodVerticalScaling feature gate is enabled and resources are updated without changing other pod fields, Flux should perform an in-place resource resize rather than recreating pods (after checking ResizePolicy)
Screenshots and recordings
No response
OS / Distro
N/A
Flux version
N/A
Flux check
N/A
Git provider
No response
Container Registry provider
No response
Additional context
Related docs: https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/
I'm willing to work on a patch for this, I just need some guidance on warning areas (== painpoints I may miss).
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels