Horizontal Pod Autoscaling (HPA)
Horizontal pod autoscaling is a built-in feature in Kubernetes. It allows you to automatically scale the number of pods in a deployment based on usage.HPA requires
metrics-server
to be installed in K8s clusters, which is handled by Ubicloud Kubernetes by default for you.Vertical Pod Autoscaling (VPA)
Vertical Pod Autoscaler (VPA) in Kubernetes automatically adjusts CPU and memory requests for pods based on observed usage. It’s ideal for workloads with unpredictable resource needs or those that don’t scale well horizontally, helping ensure stability and efficient utilization without manual tuning. Unlike HPA, Vertical Pod Autoscaler isn’t bundled with Kubernetes out of the box and needs to be installed separately via the official VPA repository.kube-system
namespace: vpa-admission-controller
, vpa-recommender
, and vpa-updater
.
Create sample application