<p>We are trying out Kubernetes Autoscaling options. We have configured for Horizontal Pod Autoscaling but was wondering if it is possible to implement both horizontal and vertical auto scaling condition for a particular application ? to explain more I want to be able to increase resource of a pod if I don't want to increase the number of pods and if I don't want to increase the pod resources I will be able to increase the number of pods to scale for the same application.</p>

user3396478
<p>If your HPA is not based on CPU or Memory you can do this with no problem, but this is not recommended to use both VPA and HPA when the HPA is based on CPU or Memory.</p>
<p>Taken from the <a href="https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#known-limitations" rel="nofollow noreferrer">VPA documentation</a>: <em>&quot;Vertical Pod Autoscaler should not be used with the Horizontal Pod Autoscaler (HPA) on CPU or memory at this moment&quot;</em></p>
<p>There are some options on how to do so. For example, you can update the HPA relatively to the CPU/Memory change.</p>
<p>For further examples, there is a free tool named <a href="https://granulate.io/gmaestro/?utm_source=stackoverflow&amp;utm_medium=forum&amp;utm_campaign=gMaestro" rel="nofollow noreferrer">gMaestro</a> that supports both rightsizing and HPA, you can try to use it.</p>
