kf enable-autoscaling


kf enable-autoscaling - Enable autoscaling for App


kf enable-autoscaling APP-NAME [flags]


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


  kf enable-autoscaling myapp


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 file (default is $HOME/.kf)
Kubectl config file (default is $HOME/.kube/config)
Log HTTP requests to stderr
Space to run the command against. This overrides the currently targeted space