An autoscaler can automatically increase or decrease number of pods deployed within the system as needed.`)
An autoscaler can automatically increase or decrease number of pods deployed within the system as needed.`)
autoscaleExample=dedent.Dedent(`
autoscaleExample=dedent.Dedent(`
# Auto scale a deployment "foo", with the number of pods between 2 to 10, target CPU utilization specified so a default autoscaling policy will be used:
# Auto scale a deployment "foo", with the number of pods between 2 and 10, target CPU utilization specified so a default autoscaling policy will be used:
kubectl autoscale deployment foo --min=2 --max=10
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%:
# Auto scale a replication controller "foo", with the number of pods between 1 and 5, target CPU utilization at 80%:
@@ -38,7 +38,7 @@ func NewCmdConfig(pathOptions *clientcmd.PathOptions, out io.Writer) *cobra.Comm
...
@@ -38,7 +38,7 @@ func NewCmdConfig(pathOptions *clientcmd.PathOptions, out io.Writer) *cobra.Comm
The loading order follows these rules:
The loading order follows these rules:
1. If the --`+pathOptions.ExplicitFileFlag+` flag is set, then only that file is loaded. The flag may only be set once and no merging takes place.
1. If the --`+pathOptions.ExplicitFileFlag+` flag is set, then only that file is loaded. The flag may only be set once and no merging takes place.
2. If $`+pathOptions.EnvVar+` environment variable is set, then it is used a list of paths (normal path delimitting rules for your system). These paths are merged together. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last file in the list.
2. If $`+pathOptions.EnvVar+` environment variable is set, then it is used a list of paths (normal path delimitting rules for your system). These paths are merged. When a value is modified, it is modified in the file that defines the stanza. When a value is created, it is created in the first file that exists. If no files in the chain exist, then it creates the last file in the list.
3. Otherwise, `+path.Join("${HOME}",pathOptions.GlobalFileSubpath)+` is used and no merging takes place.
3. Otherwise, `+path.Join("${HOME}",pathOptions.GlobalFileSubpath)+` is used and no merging takes place.
Use:fmt.Sprintf("set-cluster NAME [--%v=server] [--%v=path/to/certficate/authority] [--%v=true]",clientcmd.FlagAPIServer,clientcmd.FlagCAFile,clientcmd.FlagInsecure),
Use:fmt.Sprintf("set-cluster NAME [--%v=server] [--%v=path/to/certificate/authority] [--%v=true]",clientcmd.FlagAPIServer,clientcmd.FlagCAFile,clientcmd.FlagInsecure),
PROPERTY_NAME is a dot delimited name where each token represents either a attribute name or a map key. Map keys may not contain dots.
PROPERTY_NAME is a dot delimited name where each token represents either an attribute name or a map key. Map keys may not contain dots.
PROPERTY_VALUE is the new value you wish to set. Binary fields such as 'certificate-authority-data' expect a base64 encoded string unless the --set-raw-bytes flag is used.`)
PROPERTY_VALUE is the new value you wish to set. Binary fields such as 'certificate-authority-data' expect a base64 encoded string unless the --set-raw-bytes flag is used.`)
f:=cmd.Flags().VarPF(&options.Merge,"merge","","merge together the full hierarchy of kubeconfig files")
f:=cmd.Flags().VarPF(&options.Merge,"merge","","merge the full hierarchy of kubeconfig files")
f.NoOptDefVal="true"
f.NoOptDefVal="true"
cmd.Flags().BoolVar(&options.RawByteData,"raw",false,"display raw byte data")
cmd.Flags().BoolVar(&options.RawByteData,"raw",false,"display raw byte data")
cmd.Flags().BoolVar(&options.Flatten,"flatten",false,"flatten the resulting kubeconfig file into selfcontained output (useful for creating portable kubeconfig files)")
cmd.Flags().BoolVar(&options.Flatten,"flatten",false,"flatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)")
cmd.Flags().BoolVar(&options.Minify,"minify",false,"remove all information not used by current-context from the output")
cmd.Flags().BoolVar(&options.Minify,"minify",false,"remove all information not used by current-context from the output")
// TODO: remove create-external-load-balancer in code on or after Aug 25, 2016.
// TODO: remove create-external-load-balancer in code on or after Aug 25, 2016.
cmd.Flags().Bool("create-external-load-balancer",false,"If true, create an external load balancer for this service (trumped by --type). Implementation is cloud provider dependent. Default is 'false'.")
cmd.Flags().Bool("create-external-load-balancer",false,"If true, create an external load balancer for this service (trumped by --type). Implementation is cloud provider dependent. Default is 'false'.")
cmd.Flags().String("load-balancer-ip","","IP to assign to to the Load Balancer. If empty, an ephemeral IP will be created and used (cloud-provider specific).")
cmd.Flags().String("load-balancer-ip","","IP to assign to the Load Balancer. If empty, an ephemeral IP will be created and used (cloud-provider specific).")
cmd.Flags().String("selector","","A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.")
cmd.Flags().String("selector","","A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.")
cmd.Flags().StringP("labels","l","","Labels to apply to the service created by this call.")
cmd.Flags().StringP("labels","l","","Labels to apply to the service created by this call.")
cmd.Flags().String("container-port","","Synonym for --target-port")
cmd.Flags().String("container-port","","Synonym for --target-port")