kf enable-autoscaling

Name

kf enable-autoscaling - Enable autoscaling for App

Synopsis

kf enable-autoscaling APP-NAME [flags]

Description

Enabling autoscaling creates a HorizontalPodAutoscaler(HPA) for an App. HPA controls the number of replicas the App should have based on CPU utilization.

Autoscaler will only take effect after autoscaling limits are set and autoscaling rules are added.

Set autoscaling limits by running:

kf update-autoscaling-limits AppName MinInstances MaxInstances

Add rules by running:

kf create-autoscaling-rule AppName RuleType MinThreshold MaxThreshold

Examples

  kf enable-autoscaling myapp

Flags

--async
Don't wait for the action to complete on the server before returning
-h, --help
help for enable-autoscaling

Inherited flags

These flags are inherited from parent commands.

--config=string
Config file (default is $HOME/.kf)
--kubeconfig=string
Kubectl config file (default is $HOME/.kube/config)
--log-http
Log HTTP requests to stderr
--space=string
Space to run the command against. This overrides the currently targeted space