Learn how to use the Horizontal Pod Autoscaler (HPA) in Kubernetes to automatically scale the number of pod replicas based on CPU or memory.