Skip to content

Commit bbf459c

Browse files
authored
Merge pull request #51117 from my-git9/npa-1140
[zh-cn]sync kubectl_autoscale/_index.md
2 parents 5dbd8df + 4a2b892 commit bbf459c

File tree

1 file changed

+2
-1
lines changed
  • content/zh-cn/docs/reference/kubectl/generated/kubectl_autoscale

1 file changed

+2
-1
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_autoscale/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ no_list: true
1515
## {{% heading "synopsis" %}}
1616

1717
<!--
18-
Creates an autoscaler that automatically chooses and sets the number of pods that run in a Kubernetes cluster.
18+
Creates an autoscaler that automatically chooses and sets the number of pods that run in a Kubernetes cluster. The command will attempt to use the autoscaling/v2 API first, in case of an error, it will fall back to autoscaling/v1 API.
1919
2020
Looks up a deployment, replica set, stateful set, or replication controller by name and creates an autoscaler that uses the given resource as a reference. An autoscaler can automatically increase or decrease number of pods deployed within the system as needed.
2121
-->
2222
创建一个自动扩缩器,自动选择并设置在 Kubernetes 集群中运行的 Pod 数量。
23+
此命令将先尝试使用 `autoscaling/v2` API,如果发生错误,它将回退到 `autoscaling/v1` API。
2324

2425
- 按名称查找 Deployment、ReplicaSet、StatefulSet 或 ReplicationController,并创建使用给定资源作为参照指标的自动扩缩器。
2526
自动扩缩器可以根据需要自动增加或减少系统内部署的 Pod 数量。

0 commit comments

Comments
 (0)