mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #54987 from tengqm/scale-help
Automatic merge from submit-queue (batch tested with PRs 54987, 55221, 54099, 55144, 54215). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Scale help **What this PR does / why we need it**: The `kubectl autoscale --help` says this: ``` # 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 ``` This is incorrect. A default autoscaling policy will be used because *no* target CPU utilization has been specified. **Which issue(s) this PR fixes**: **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
fc61d9bc1e
@ -383,8 +383,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -3606,8 +3606,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -3616,8 +3616,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -7083,8 +7083,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -7093,8 +7093,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -10690,8 +10690,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -14096,8 +14096,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
|
@ -38,7 +38,7 @@ var (
|
||||
An autoscaler can automatically increase or decrease number of pods deployed within the system as needed.`))
|
||||
|
||||
autoscaleExample = templates.Examples(i18n.T(`
|
||||
# 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:
|
||||
# Auto scale a deployment "foo", with the number of pods between 2 and 10, no target CPU utilization specified so a default autoscaling policy will be used:
|
||||
kubectl autoscale deployment foo --min=2 --max=10
|
||||
|
||||
# Auto scale a replication controller "foo", with the number of pods between 1 and 5, target CPU utilization at 80%:
|
||||
|
@ -154,8 +154,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
|
@ -152,8 +152,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -162,8 +162,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
|
@ -152,8 +152,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
@ -162,8 +162,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
|
@ -153,8 +153,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
|
@ -98,8 +98,8 @@ msgstr ""
|
||||
msgid ""
|
||||
"\n"
|
||||
"\t\t# 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:\n"
|
||||
"10, no target CPU utilization specified so a default autoscaling policy will "
|
||||
"be used:\n"
|
||||
"\t\tkubectl autoscale deployment foo --min=2 --max=10\n"
|
||||
"\n"
|
||||
"\t\t# Auto scale a replication controller \"foo\", with the number of pods "
|
||||
|
Loading…
Reference in New Issue
Block a user