**can the following be done : **
VPA relies on a number of different measurements and is different from the HPA. We can therefore use VPA without interference in relation to the HPA. For a truly efficient scaling, the HPA and VPA complement each other. HPA creates new replicas if the load raises. If the space for these replicas is not sufficient, VPA will provide some nodes, allowing HPA-made pods to run
can it use the same metrics? if we use metrics will both of it execute or do we need to define different metrics for both?
I would also like to clarify one thing:
If the space for these replicas is not sufficient, VPA will provide some nodes, allowing HPA-made pods to run
If the number of nodes provided changes, it is horizontal scaling. Vertical scaling would mean changing the resource capacity of a node like number of cpus or amount of memory.
As for VPA working with HPA:
No, According to this article:
AFAIK, k8s is better suited for HPA. K8s documentation also has HPA page.