-
Notifications
You must be signed in to change notification settings - Fork 4.4k
VPA not receiving memory statistics but CPU is updating #8982
Copy link
Copy link
Open
Labels
area/vertical-pod-autoscalerIssues or PRs related to the Vertical Pod Autoscaler componentIssues or PRs related to the Vertical Pod Autoscaler componentkind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.triage/needs-informationIndicates an issue needs more information in order to work on it.Indicates an issue needs more information in order to work on it.
Metadata
Metadata
Assignees
Labels
area/vertical-pod-autoscalerIssues or PRs related to the Vertical Pod Autoscaler componentIssues or PRs related to the Vertical Pod Autoscaler componentkind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.triage/needs-informationIndicates an issue needs more information in order to work on it.Indicates an issue needs more information in order to work on it.
Which component are you using?: /area vertical-pod-autoscaler
What version of the component are you using?:
Component version: 1.5
What k8s version are you using (
kubectl version)?: v1.33.6+k3s1kubectl versionOutputWhat environment is this in?: on prem
What did you expect to happen?: VPAcheckpoint updates the memory bucket weights and subsequently updates the VPA recommendations.
What happened instead?: memory is not updating in the VPAcheckpoints at all, and VPAs are therefore not changing their recommendations.
How to reproduce it (as minimally and precisely as possible): following the readme, clone the repo and run the hack command.
Anything else we need to know?:
This is weird one and I'm not sure how to nail down exactly what's gone wrong. I've actually been running VPAs for years now without much issue until I saw recently that the new inplaceorrecreate option is available, so I decided to give it a try.
I cloned the repo again, ran the hack command, updated all my VPAs to updateMode: "InPlaceOrRecreate" and thought it was working but the memory buckets were frozen in place. After several full deletions of all VPAs and VPAcheckpoints, and after realising I needed the feature flag enabled and trying it with the flag, then removing the CRDs again completely before re-adding them without it, I'm back at square one but my memory statistics don't update at all in my VPAcheckpoints. The sampling is going up and the CPU values appear to be changing but memory does nothing, it stays blank. Here is an example
As you can see there are 77 samples and no memory buckets showing. This is the case for all my VPAs now.
I've fully removed the CRDs and re-added them again but I have no idea what's wrong other than maybe a version disparity.
Let me know any commands to show outputs that would help.