Horizontal Pod Autoscaler Operations

From NovaOrdis Knowledge Base
Revision as of 18:59, 6 October 2020 by Ovidiu (talk | contribs) (→‎With CLI)
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.

With CLI

kubectl autoscale deployment <deployment-name> --cpu-percent=50 --min=1 --max=10

With Metadata