Horizontal Pod Autoscaler Operations: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
==With CLI== | ==With CLI== | ||
<syntaxhighlight lang='text'> | |||
kubectl autoscale deployment <deployment-name> --cpu-percent=50 --min=1 --max=10 | |||
</syntaxhighlight> | |||
==With Metadata== | ==With Metadata== |
Revision as of 18:59, 6 October 2020
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.
With CLI
kubectl autoscale deployment <deployment-name> --cpu-percent=50 --min=1 --max=10