kubectl autoscale
ScalingAuto-scale deployment based on metrics
Options & Flags
Available options for this command
--minMinimum replicas
--maxMaximum replicas
--cpu-percentTarget CPU utilization
Examples
Common usage examples
Create HPA with CPU target
kubectl autoscale deployment myapp --min=2 --max=10 --cpu-percent=80Notes
- Creates HorizontalPodAutoscaler
- Requires metrics-server
Related Commands
You might also find these useful