mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Kubectl scale command accepts a filename param
This commit is contained in:
@@ -27,6 +27,10 @@ scale is sent to the server.
|
||||
\fB\-\-current\-replicas\fP=\-1
|
||||
Precondition for current size. Requires that the current size of the replication controller match this value in order to scale.
|
||||
|
||||
.PP
|
||||
\fB\-f\fP, \fB\-\-filename\fP=[]
|
||||
Filename, directory, or URL to a file identifying the replication controller to set a new size
|
||||
|
||||
.PP
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for scale
|
||||
@@ -154,6 +158,9 @@ scale is sent to the server.
|
||||
# Scale replication controller named 'foo' to 3.
|
||||
$ kubectl scale \-\-replicas=3 replicationcontrollers foo
|
||||
|
||||
# Scale a replication controller identified by type and name specified in "foo\-controller.yaml" to 3.
|
||||
$ kubectl scale \-\-replicas=3 \-f foo\-controller.yaml
|
||||
|
||||
# If the replication controller named foo's current size is 2, scale foo to 3.
|
||||
$ kubectl scale \-\-current\-replicas=2 \-\-replicas=3 replicationcontrollers foo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user