Member-only story
VPA + Goldilocks
When you manage your resources in Kubernetes, you will need to optimize resource usage to improve performance, reduce costs and automate resource management. Goldilocks and VPA provide valuable capabilities for helping out the capabilities mentioned above.
VPA
VPA is a Kubernetes component that automatically adjusts the resource requests and limits of pods based on their actual resource usage. This monitors the resource utilization of pods and adjusts their resource allocations dynamically.
How does it work?

How to install it?
download the source code of VPA and install command
git clone https://github.com/kubernetes/autoscaler.git
cd vertical-pod-autoscaler
./hack/vpa-up.sh
This will create all resources in the namespace of kube-system. Now you are ready for the VPA capability and onboard the deployment with VPA.
Let’s do the demo with sample code.