Kubectl scale command accepts a filename param
This commit is contained in:
@@ -46,7 +46,7 @@ scale is attempted, and it is guaranteed that the precondition holds true when t
|
||||
scale is sent to the server.
|
||||
|
||||
```
|
||||
kubectl scale [--resource-version=version] [--current-replicas=count] --replicas=COUNT TYPE NAME
|
||||
kubectl scale [--resource-version=version] [--current-replicas=count] --replicas=COUNT (-f FILENAME | TYPE NAME)
|
||||
```
|
||||
|
||||
### Examples
|
||||
@@ -55,6 +55,9 @@ kubectl scale [--resource-version=version] [--current-replicas=count] --replicas
|
||||
# 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
|
||||
|
||||
@@ -66,6 +69,7 @@ $ kubectl scale --replicas=5 rc/foo rc/bar
|
||||
|
||||
```
|
||||
--current-replicas=-1: Precondition for current size. Requires that the current size of the replication controller match this value in order to scale.
|
||||
-f, --filename=[]: Filename, directory, or URL to a file identifying the replication controller to set a new size
|
||||
-h, --help[=false]: help for scale
|
||||
-o, --output="": Output mode. Use "-o name" for shorter output (resource/name).
|
||||
--replicas=-1: The new desired number of replicas. Required.
|
||||
@@ -106,7 +110,7 @@ $ kubectl scale --replicas=5 rc/foo rc/bar
|
||||
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-08-12 16:38:35.551986915 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-08-13 06:25:21.82766402 +0000 UTC
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
|
Reference in New Issue
Block a user