<p>In the <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/verticalpodautoscaler" rel="nofollow noreferrer">google documentation</a>, it says that:</p>
<blockquote>
<p>Vertical Pod autoscaling frees you from having to think about what
values to specify for a container’s CPU <strong>requests and limits</strong> and
memory <strong>requests and limits</strong>. The autoscaler can recommend values
for CPU and memory requests and limits, or it can automatically update
the values</p>
</blockquote>
<p>However in the <a href="https://github.com/kubernetes/community/blob/master/contributors/design-proposals/autoscaling/vertical-pod-autoscaler.md#recommendation-model" rel="nofollow noreferrer">open source vertical pod autoscaler documentation</a> there are two seemingly contradictory statements:</p>
<blockquote>
<p>VPA is capable of setting container resources (CPU &amp; memory
request/limit) at Pod submission time.</p>
<p>VPA only controls the resource request of containers. It sets the
limit to infinity. The request is calculated based on analysis of the
current and previous runs</p>
</blockquote>
<p>I’m confused which one is finally correct, and if there is a capability to get limits recommendations how can I add that to my VPA? so far I have only managed to only get requests recommendations.</p>

Saeid Ghafouri
<p>VPA is capable of setting the limit when you set the <code>controlledValues</code> to <code>RequestAndLimits</code> option. However, it does not recommend what the limit should be. With this requests are being calculated  based on actual values where limits are calculated based on the current pod's requests and limit relation. This means that if you start the Pod that has 2CPU requests and limit set to 10CPU then VPA will always set te limit to be 1:5. Meaning second quantity (limits) will be always 5 times as large as the first.</p>
<p>You have understand also that <code>limits</code> are not used by scheduler, those are just for Kubelet to kill the pods if he ever exceeds those</p>
<p>As for your not correctly working VPA we would need to see some config example to provide any more advice over the internet.</p>
