mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
fix description of -f option of autoscale command
use 'autoscale' instead of 'get form the server'
This commit is contained in:
parent
27d6b58ba5
commit
8b6ef01667
@ -31,7 +31,7 @@ An autoscaler can automatically increase or decrease number of pods deployed wit
|
|||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-f\fP, \fB\-\-filename\fP=[]
|
\fB\-f\fP, \fB\-\-filename\fP=[]
|
||||||
Filename, directory, or URL to a file identifying the resource to get from a server.
|
Filename, directory, or URL to a file identifying the resource to autoscale.
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-generator\fP="horizontalpodautoscaler/v1beta1"
|
\fB\-\-generator\fP="horizontalpodautoscaler/v1beta1"
|
||||||
|
@ -62,7 +62,7 @@ $ kubectl autoscale rc foo --max=5 --cpu-percent=80
|
|||||||
```
|
```
|
||||||
--cpu-percent=-1: The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, the server will apply a default value.
|
--cpu-percent=-1: The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, the server will apply a default value.
|
||||||
--dry-run[=false]: If true, only print the object that would be sent, without creating it.
|
--dry-run[=false]: If true, only print the object that would be sent, without creating it.
|
||||||
-f, --filename=[]: Filename, directory, or URL to a file identifying the resource to get from a server.
|
-f, --filename=[]: Filename, directory, or URL to a file identifying the resource to autoscale.
|
||||||
--generator="horizontalpodautoscaler/v1beta1": The name of the API generator to use. Currently there is only 1 generator.
|
--generator="horizontalpodautoscaler/v1beta1": The name of the API generator to use. Currently there is only 1 generator.
|
||||||
--max=-1: The upper limit for the number of pods that can be set by the autoscaler. Required.
|
--max=-1: The upper limit for the number of pods that can be set by the autoscaler. Required.
|
||||||
--min=-1: The lower limit for the number of pods that can be set by the autoscaler. If it's not specified or negative, the server will apply a default value.
|
--min=-1: The lower limit for the number of pods that can be set by the autoscaler. If it's not specified or negative, the server will apply a default value.
|
||||||
@ -108,7 +108,7 @@ $ kubectl autoscale rc foo --max=5 --cpu-percent=80
|
|||||||
|
|
||||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 24-Nov-2015
|
###### Auto generated by spf13/cobra on 25-Nov-2015
|
||||||
|
|
||||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||||
[]()
|
[]()
|
||||||
|
@ -61,7 +61,7 @@ func NewCmdAutoscale(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
|||||||
cmd.Flags().Int("cpu-percent", -1, fmt.Sprintf("The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, the server will apply a default value."))
|
cmd.Flags().Int("cpu-percent", -1, fmt.Sprintf("The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, the server will apply a default value."))
|
||||||
cmd.Flags().String("name", "", "The name for the newly created object. If not specified, the name of the input resource will be used.")
|
cmd.Flags().String("name", "", "The name for the newly created object. If not specified, the name of the input resource will be used.")
|
||||||
cmd.Flags().Bool("dry-run", false, "If true, only print the object that would be sent, without creating it.")
|
cmd.Flags().Bool("dry-run", false, "If true, only print the object that would be sent, without creating it.")
|
||||||
usage := "Filename, directory, or URL to a file identifying the resource to get from a server."
|
usage := "Filename, directory, or URL to a file identifying the resource to autoscale."
|
||||||
kubectl.AddJsonFilenameFlag(cmd, &filenames, usage)
|
kubectl.AddJsonFilenameFlag(cmd, &filenames, usage)
|
||||||
cmdutil.AddApplyAnnotationFlags(cmd)
|
cmdutil.AddApplyAnnotationFlags(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user