VPA assigns minAllowed.memory
instead of actual recommendation when restarting Prometheus pod if Limitrange
is set
#7429
Labels
area/vertical-pod-autoscaler
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Which component are you using?:
vertical-pod-autoscaler
What version of the component are you using?:
1.2.1
Component version:
What k8s version are you using (
kubectl version
)?:What environment is this in?:
eks
What did you expect to happen?:
I expected
VPA
's AdmissionController to patch my Prometheus pod with arequest.memory
value equal to the memory target recommendationWhat happened instead?:
Instead, the new pod got deployed with the following:
limit.memory
got halvedrequest.memory
has been assigned the value that I specified asminAllowed.memory
from the VPA object itselfOn the other hand, CPU got updated correctly
How to reproduce it (as minimally and precisely as possible):
VPA object
LimitRange
Anything else we need to know?:
We talked this out on the #sig-autoscaling Slack channel and it turns out that by deleting the
LimitRange
,VPA
goes back on track and manages memory in the appropriate way.Personally I do not know if this is a bug or an opportunity to enhance the docs but we thought it could be good to raise an Issue about it
The text was updated successfully, but these errors were encountered: