Skip to content

VPA not receiving memory statistics but CPU is updating #8982

@2fst4u

Description

@2fst4u

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+k3s1

kubectl version Output
$ kubectl version

What 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

Name:         open-webui-vpa-open-webui
Namespace:    open-webui
Labels:       <none>
Annotations:  <none>
API Version:  autoscaling.k8s.io/v1
Kind:         VerticalPodAutoscalerCheckpoint
Metadata:
  Creation Timestamp:  2025-12-30T07:45:36Z
  Generation:          73
  Resource Version:    820924750
  UID:                 0b2f3caf-6656-4972-aea3-a1b11af0909e
Spec:
  Container Name:   open-webui
  Vpa Object Name:  open-webui-vpa
Status:
  Cpu Histogram:
    Bucket Weights:
      0:                  10000
      1:                  734
      3:                  145
      4:                  294
      5:                  148
    Reference Timestamp:  2025-12-30T00:00:00Z
    Total Weight:         9.79105681805703
  First Sample Start:     2025-12-30T07:40:20Z
  Last Sample Start:      2025-12-30T08:57:17Z
  Last Update Time:       2025-12-30T08:57:36Z
  Memory Histogram:
    Reference Timestamp:  2025-12-31T00:00:00Z
  Total Samples Count:    77
  Version:                v3
Events:                   <none>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vertical-pod-autoscalerIssues or PRs related to the Vertical Pod Autoscaler componentkind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions