Support autoscale deployments

This commit is contained in:
Janet Kuo
2015-11-13 17:20:04 -08:00
parent 961a02a602
commit 8e99bae7ec
7 changed files with 31 additions and 19 deletions

View File

@@ -3,7 +3,7 @@
.SH NAME
.PP
kubectl autoscale \- Auto\-scale a replication controller
kubectl autoscale \- Auto\-scale a deployment or replication controller
.SH SYNOPSIS
@@ -16,7 +16,7 @@ kubectl autoscale \- Auto\-scale a replication controller
Creates an autoscaler that automatically chooses and sets the number of pods that run in a kubernetes cluster.
.PP
Looks up a replication controller by name and creates an autoscaler that uses this replication controller as a reference.
Looks up a deployment or replication controller by name and creates an autoscaler that uses this deployment or replication controller as a reference.
An autoscaler can automatically increase or decrease number of pods deployed within the system as needed.
@@ -180,8 +180,8 @@ An autoscaler can automatically increase or decrease number of pods deployed wit
.RS
.nf
# Auto scale a replication controller "foo", with the number of pods between 2 to 10, target CPU utilization at a default value that server applies:
$ kubectl autoscale rc foo \-\-min=2 \-\-max=10
# Auto scale a deployment "foo", with the number of pods between 2 to 10, target CPU utilization at a default value that server applies:
$ kubectl autoscale deployment foo \-\-min=2 \-\-max=10
# Auto scale a replication controller "foo", with the number of pods between 1 to 5, target CPU utilization at 80%:
$ kubectl autoscale rc foo \-\-max=5 \-\-cpu\-percent=80