Create a HorizontalPodAutoscaler for a deployment.
Section: Autoscaling
Create HPA
bash
bash
kubectl autoscale deployment web --cpu-percent=70 --min=2 --max=10 -n paymentsExplanation
Create a HorizontalPodAutoscaler for a deployment.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Autoscaling