Name
kf create-autoscaling-rule
- Create autoscaling rule for App
Synopsis
kf create-autoscaling-rule APP RULE-TYPE MIN-THRESHOLD MAX-THRESHOLD [flags]
Description
Create an autoscaling rule for App.
The only (currently) supported rule type is CPU. It is the target percentage. It is calculated by taking the average of MIN-THRESHOLD and MAX-THRESHOLD.
The range of MIN-THRESHOLD and MAX-THRESHOLD is 1 to 100 (percent)
Examples
# Scale myapp based on CPU load targeting 50% utilization (halfway between 20 and 80) kf create-autoscaling-rule myapp CPU 20 80
Flags
--async
- Don't wait for the action to complete on the server before returning
-h, --help
- help for create-autoscaling-rule
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