Horizontal Pod Autoscaler Operations
Jump to navigation
Jump to search
Internal
Create an Autoscaler
A pre-requisite, if we intend the autoscaler to monitor resource metrics, a source of resource metrics must be deployed. The simplest source of resource metrics is the metrics server.
The horizontal pod autoscalers works with a previously deployed higher level controller that supports scaling (deployments, replica sets, stateful sets)
With CLI
kubectl autoscale deployment <deployment-name> --cpu-percent=50 --min=1 --max=10