Skip to content

Commit e6252d8

Browse files
committed
[zh-cn] sync apiserver-aggregation.md and autoscaling.md
1 parent 50c87d4 commit e6252d8

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

content/zh-cn/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ let you meet it.
9191
* To get the aggregator working in your environment, [configure the aggregation layer](/docs/tasks/extend-kubernetes/configure-aggregation-layer/).
9292
* Then, [setup an extension api-server](/docs/tasks/extend-kubernetes/setup-extension-api-server/) to work with the aggregation layer.
9393
* Read about [APIService](/docs/reference/kubernetes-api/cluster-resources/api-service-v1/) in the API reference
94+
* Learn about [Declarative Validation Concepts](/docs/reference/using-api/declarative-validation), an internal mechanism for defining validation rules that in the future will help support validation for extension API server development.
9495
9596
Alternatively: learn how to
9697
[extend the Kubernetes API using Custom Resource Definitions](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/).
@@ -100,5 +101,7 @@ Alternatively: learn how to
100101
* 接下来,了解[安装扩展 API 服务器](/zh-cn/docs/tasks/extend-kubernetes/setup-extension-api-server/)
101102
开始使用聚合层。
102103
* 从 API 参考资料中研究关于 [APIService](/zh-cn/docs/reference/kubernetes-api/cluster-resources/api-service-v1/) 的内容。
104+
* 了解 [声明式校验概念](/zh-cn/docs/reference/using-api/declarative-validation)
105+
一种用于定义校验规则的内部机制,未来将有助于支持扩展 API Server 的开发过程中的校验能力。
103106

104107
或者,学习如何[使用 CustomResourceDefinition 扩展 Kubernetes API](/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/)

content/zh-cn/docs/concepts/workloads/autoscaling.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ At the moment, the VPA can operate in four different modes:
144144
{{< table caption="Different modes of the VPA" >}}
145145
Mode | Description
146146
:----|:-----------
147-
`Auto` | Currently, `Recreate` might change to in-place updates in the future
147+
`Auto` | Currently `Recreate`. This might change to in-place updates in the future.
148148
`Recreate` | The VPA assigns resource requests on pod creation as well as updates them on existing pods by evicting them when the requested resources differ significantly from the new recommendation
149149
`Initial` | The VPA only assigns resource requests on pod creation and never changes them later.
150150
`Off` | The VPA does not automatically change the resource requirements of the pods. The recommendations are calculated and can be inspected in the VPA object.
@@ -153,28 +153,26 @@ Mode | Description
153153
{{< table caption="VPA 的不同模式" >}}
154154
模式 | 描述
155155
:----|:-----------
156-
`Auto` | 目前是 `Recreate`将来可能改为就地更新
156+
`Auto` | 目前是 `Recreate`未来可能会变更为就地更新(in-place updates)
157157
`Recreate` | VPA 会在创建 Pod 时分配资源请求,并且当请求的资源与新的建议值区别很大时通过驱逐 Pod 的方式来更新现存的 Pod
158158
`Initial` | VPA 只有在创建时分配资源请求,之后不做更改
159159
`Off` | VPA 不会自动更改 Pod 的资源需求,建议值仍会计算并可在 VPA 对象中查看
160160
{{< /table >}}
161161

162162
<!--
163-
#### Requirements for in-place resizing
163+
#### In-place pod vertical scaling
164164
-->
165-
#### 就地调整的要求
165+
#### 就地 Pod 垂直扩缩容 {#in-place-pod-vertical-scaling}
166166

167167
{{< feature-state feature_gate_name="InPlacePodVerticalScaling" >}}
168168

169169
<!--
170-
Resizing a workload in-place **without** restarting the {{< glossary_tooltip text="Pods" term_id="pod" >}}
171-
or its {{< glossary_tooltip text="Containers" term_id="container" >}} requires Kubernetes version 1.27 or later.
172-
Additionally, the `InPlaceVerticalScaling` feature gate needs to be enabled.
170+
As of Kubernetes {{< skew currentVersion >}}, VPA does not support resizing pods in-place,
171+
but this integration is being worked on.
172+
For manually resizing pods in-place, see [Resize Container Resources In-Place](/docs/tasks/configure-pod-container/resize-container-resources/).
173173
-->
174-
****重启 {{< glossary_tooltip text="Pod" term_id="pod" >}} 或其中{{< glossary_tooltip text="容器" term_id="container" >}}就地调整工作负载的情况下要求 Kubernetes 版本大于 1.27。
175-
此外,特性门控 `InPlaceVerticalScaling` 需要开启。
176-
177-
{{< feature-gate-description name="InPlacePodVerticalScaling" >}}
174+
截至 Kubernetes {{< skew currentVersion >}},VPA(垂直 Pod 自动伸缩)尚不支持就地调整 Pod 大小,但该集成正在开发中。
175+
如需手动进行就地扩缩容,请参阅 [就地调整容器资源](/zh-cn/docs/tasks/configure-pod-container/resize-container-resources/)
178176

179177
<!--
180178
### Autoscaling based on cluster size
@@ -196,24 +194,27 @@ own project on GitHub.
196194
The Cluster Proportional Autoscaler watches the number of schedulable {{< glossary_tooltip text="nodes" term_id="node" >}}
197195
and cores and scales the number of replicas of the target workload accordingly.
198196
-->
199-
集群弹性伸缩器 (Cluster Proportional Autoscaler) 会观测可调度 {{< glossary_tooltip text="节点" term_id="node" >}} 和 内核数量
197+
集群弹性伸缩器 (Cluster Proportional Autoscaler)会观测可调度 {{< glossary_tooltip text="节点" term_id="node" >}}和处理器核数量
200198
并调整目标工作负载的副本数量。
201199

202200
<!--
203201
If the number of replicas should stay the same, you can scale your workloads vertically according to the cluster size using
204202
the [_Cluster Proportional Vertical Autoscaler_](https://github.com/kubernetes-sigs/cluster-proportional-vertical-autoscaler).
205203
The project is **currently in beta** and can be found on GitHub.
206204
-->
207-
如果副本的数量需要保持一致,你可以使用 [Cluster Proportional Vertical Autoscaler](https://github.com/kubernetes-sigs/cluster-proportional-vertical-autoscaler) 来根据集群规模进行垂直扩缩。
205+
如果副本的数量需要保持一致,
206+
你可以使用 [Cluster Proportional Vertical Autoscaler](https://github.com/kubernetes-sigs/cluster-proportional-vertical-autoscaler)
207+
来根据集群规模进行垂直扩缩。
208208
这个项目目前处于 **beta** 阶段,你可以在 GitHub 上找到它。
209209

210210
<!--
211-
While the Cluster Proportional Autoscaler scales the number of replicas of a workload, the Cluster Proportional Vertical Autoscaler
212-
adjusts the resource requests for a workload (for example a Deployment or DaemonSet) based on the number of nodes and/or cores
213-
in the cluster.
211+
While the Cluster Proportional Autoscaler scales the number of replicas of a workload,
212+
the Cluster Proportional Vertical Autoscaler adjusts the resource requests for a workload
213+
(for example a Deployment or DaemonSet) based on the number of nodes and/or cores in the cluster.
214214
-->
215-
集群弹性伸缩器会扩缩工作负载的副本数量,垂直集群弹性伸缩器 (Cluster Proportional Vertical Autoscaler) 会根据节点和/或核心的数量
216-
调整工作负载的资源请求(例如 Deployment 和 DaemonSet)。
215+
集群弹性伸缩器 (Cluster Proportional Autoscaler) 通过调整工作负载副本数量实现扩缩容,
216+
而垂直集群弹性伸缩器 (Cluster Proportional Vertical Autoscaler) 则根据集群中的节点数和 / 或 CPU 核心数,
217+
调整工作负载(例如 Deployment 或 DaemonSet)的资源请求值。
217218

218219
<!--
219220
### Event driven Autoscaling
@@ -248,11 +249,12 @@ reduce resource consumption during off-peak hours.
248249

249250
<!--
250251
Similar to event driven autoscaling, such behavior can be achieved using KEDA in conjunction with
251-
its [`Cron` scaler](https://keda.sh/docs/latest/scalers/cron/). The `Cron` scaler allows you to define schedules
252-
(and time zones) for scaling your workloads in or out.
252+
its [`Cron` scaler](https://keda.sh/docs/latest/scalers/cron/).
253+
The `Cron` scaler allows you to define schedules (and time zones) for scaling your workloads in or out.
253254
-->
254-
与事件驱动型自动扩缩相似,这种行为可以使用 KEDA 和 [`Cron` scaler](https://keda.sh/docs/latest/scalers/cron/) 实现。
255-
你可以在计划扩缩器 (Cron scaler) 中定义计划来实现工作负载的横向扩缩。
255+
与事件驱动自动扩缩容类似,
256+
这种行为可以使用 KEDA 和 [`Cron` scaler](https://keda.sh/docs/latest/scalers/cron/) 实现。
257+
`Cron` 扩缩器允许你根据预设的时间表(以及时区)对工作负载进行扩容或缩容。
256258

257259
<!--
258260
## Scaling cluster infrastructure

0 commit comments

Comments
 (0)