You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployment with limits can be controlled only one resource by VPA.
What happened instead?:
VPA resource only has cpu as a controlledResource, but a vpa-admission-controller sends patch for non controlled resource limits and the value is 0. (like this{add /spec/containers/0/resources/limits/memory 0}) For that reason, replicaset-controller gets FailedCreate error.
vpa-admission-controller patch log:
vpa-admission-controller-6cd546c4f-zckmj admission-controller I0225 05:53:42.693154 1 server.go:110] Sending patches: [{add /metadata/annotations map[]} {add /spec/containers/0/resources/requests/cpu 587m} {add /spec/containers/0/resources/limits/cpu 5870m} {add /spec/containers/0/resources/limits/memory 0} {add /metadata/annotations/vpaUpdates Pod resources updated by hamster-vpa: container 0: cpu request, cpu limit, memory limit} {add /metadata/annotations/vpaObservedContainers hamster}
replicaset-controller warning event:
tainers[0].resources.requests: Invalid value: "256Mi": must be less than or equal to memory limit
0s Warning FailedCreate replicaset/hamster-5d669c8b66 Error creating: Pod "hamster-5d669c8b66-7hphs" is invalid: spec.containers[0].resources.requests: Invalid value: "256Mi": must be less than or equal to memory limit
How to reproduce it (as minimally and precisely as possible):
Hi, I have been getting the same issue. Has there been any fix for this merged into master yet. Does this error persist with other versions of the VPA?
Which component are you using?: Vertical Pod Autoscaler
What version of the component are you using?:
Component version: 0.9.2
What k8s version are you using (
kubectl version
)?:kubectl version
OutputWhat environment is this in?:
both minikube & on-prem k8s cluster
What did you expect to happen?:
Deployment with limits can be controlled only one resource by VPA.
What happened instead?:
VPA resource only has cpu as a controlledResource, but a vpa-admission-controller sends patch for non controlled resource limits and the value is 0. (like this
{add /spec/containers/0/resources/limits/memory 0}
) For that reason, replicaset-controller getsFailedCreate
error.vpa-admission-controller patch log:
replicaset-controller warning event:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
In this example, cpu is set to controlledResource, but the same thing happens with memory.
The text was updated successfully, but these errors were encountered: