This will define hpa resources to scale the number of replicas depending on certain metrics.
Note that your Kubernetes cluster needs to have a metrics-server installed.
When available, we also recommend enabling cluster autoscaling.
Some providers, such as EKS and GKE can automatically adjust the number of nodes in your cluster based on resources and demand.