Commands.app

kubectl autoscale

Scaling

Auto-scale deployment based on metrics

Options & Flags
Available options for this command
--min

Minimum replicas

--max

Maximum replicas

--cpu-percent

Target CPU utilization

Examples
Common usage examples

Create HPA with CPU target

kubectl autoscale deployment myapp --min=2 --max=10 --cpu-percent=80
Notes
  • Creates HorizontalPodAutoscaler
  • Requires metrics-server
Related Commands
You might also find these useful