Kubectl scale command accepts a filename param

This commit is contained in:
feihujiang
2015-08-11 17:05:28 +08:00
parent a6148e79c3
commit 1e10a7cc59
5 changed files with 40 additions and 11 deletions

View File

@@ -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