mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
Support autoscale deployments
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user