Skip to content

Commit 21d119a

Browse files
committed
[zh-cn]sync horizontal-pod-autoscaler-* job-v1
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 329de92 commit 21d119a

File tree

3 files changed

+78
-46
lines changed

3 files changed

+78
-46
lines changed

Diff for: content/zh-cn/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v1.md

+18-11
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ auto_generated: true
2929
## HorizontalPodAutoscaler {#HorizontalPodAutoscaler}
3030
3131
configuration of a horizontal pod autoscaler.
32-
33-
<hr>
3432
-->
3533
## HorizontalPodAutoscaler {#HorizontalPodAutoscaler}
3634

@@ -41,7 +39,6 @@ configuration of a horizontal pod autoscaler.
4139
<!--
4240
- **apiVersion**: autoscaling/v1
4341
44-
4542
- **kind**: HorizontalPodAutoscaler
4643
-->
4744
- **apiVersion**: autoscaling/v1
@@ -81,8 +78,6 @@ configuration of a horizontal pod autoscaler.
8178
## HorizontalPodAutoscalerSpec {#HorizontalPodAutoscalerSpec}
8279
8380
specification of a horizontal pod autoscaler.
84-
85-
<hr>
8681
-->
8782
## HorizontalPodAutoscalerSpec {#HorizontalPodAutoscalerSpec}
8883

@@ -176,8 +171,6 @@ specification of a horizontal pod autoscaler.
176171
## HorizontalPodAutoscalerStatus {#HorizontalPodAutoscalerStatus}
177172
178173
current status of a horizontal pod autoscaler
179-
180-
<hr>
181174
-->
182175
## HorizontalPodAutoscalerStatus {#HorizontalPodAutoscalerStatus}
183176

@@ -245,8 +238,6 @@ current status of a horizontal pod autoscaler
245238
## HorizontalPodAutoscalerList {#HorizontalPodAutoscalerList}
246239
247240
list of horizontal pod autoscaler objects.
248-
249-
<hr>
250241
-->
251242
## HorizontalPodAutoscalerList {#HorizontalPodAutoscalerList}
252243

@@ -283,8 +274,6 @@ list of horizontal pod autoscaler objects.
283274

284275
<!--
285276
## Operations {#Operations}
286-
287-
<hr>
288277
-->
289278
## 操作 {#Operations}
290279

@@ -1169,6 +1158,15 @@ DELETE /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{nam
11691158

11701159
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
11711160

1161+
<!--
1162+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
1163+
1164+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1165+
-->
1166+
- **ignoreStoreReadErrorWithClusterBreakingPotential****查询参数**): boolean
1167+
1168+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1169+
11721170
<!--
11731171
- **pretty** (*in query*): string
11741172
@@ -1266,6 +1264,15 @@ DELETE /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers
12661264

12671265
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
12681266

1267+
<!--
1268+
- **ignoreStoreReadErrorWithClusterBreakingPotential** (*in query*): boolean
1269+
1270+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1271+
-->
1272+
- **ignoreStoreReadErrorWithClusterBreakingPotential****查询参数**): boolean
1273+
1274+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
1275+
12691276
<!--
12701277
- **labelSelector** (*in query*): string
12711278

Diff for: content/zh-cn/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -380,28 +380,27 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
380380
381381
- **metrics.type** (string), required
382382
383-
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
383+
type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.
384384
-->
385385

386386
**MetricSpec 指定如何基于单个指标进行扩缩容(一次只能设置 `type` 和一个其他匹配字段)**
387387

388388
- **metrics.type** (string),必需
389389

390390
type 是指标源的类别。它取值是 “ContainerResource”、“External”、“Object”、“Pods” 或 “Resource” 之一,
391-
每个类别映射到对象中的一个对应的字段。注意:“ContainerResource” 类别在特性门控 HPAContainerMetrics 启用时可用。
391+
每个类别映射到对象中的一个对应的字段。
392392

393393
<!--
394394
- **metrics.containerResource** (ContainerResourceMetricSource)
395395
396-
containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.
396+
containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
397397
-->
398398

399399
- **metrics.containerResource** (ContainerResourceMetricSource)
400400

401401
containerResource 是指 Kubernetes 已知的资源指标(例如在请求和限制中指定的那些),
402402
描述当前扩缩目标中每个 Pod 中的单个容器(例如 CPU 或内存)。
403403
此类指标内置于 Kubernetes 中,在使用 “pods” 源的、按 Pod 计算的普通指标之外,还具有一些特殊的扩缩选项。
404-
这是一个 Alpha 特性,可以通过 HPAContainerMetrics 特性标志启用。
405404

406405
<a name="ContainerResourceMetricSource"></a>
407406

@@ -1080,15 +1079,15 @@ HorizontalPodAutoscalerStatus 描述了水平 Pod 自动扩缩器的当前状态
10801079
10811080
- **currentMetrics.type** (string), required
10821081
1083-
type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
1082+
type is the type of metric source. It will be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each corresponds to a matching field in the object.
10841083
-->
10851084

10861085
**MetricStatus 描述了单个指标的最后读取状态。**
10871086

10881087
- **currentMetrics.type** (string),必需
10891088

10901089
type 是指标源的类别。它取值是 “ContainerResource”、“External”、“Object”、“Pods” 或 “Resource” 之一,
1091-
每个类别映射到对象中的一个对应的字段。注意:“ContainerResource” 类别在特性门控 HPAContainerMetrics 启用时可用。
1090+
每个类别映射到对象中的一个对应的字段。
10921091

10931092
<!--
10941093
- **currentMetrics.containerResource** (ContainerResourceMetricStatus)
@@ -2283,6 +2282,10 @@ DELETE /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{nam
22832282

22842283
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
22852284

2285+
- **ignoreStoreReadErrorWithClusterBreakingPotential** <!--(*in query*)-->**查询参数**): boolean
2286+
2287+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
2288+
22862289
- **pretty** <!--(*in query*)-->**查询参数**): string
22872290

22882291
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
@@ -2344,6 +2347,10 @@ DELETE /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers
23442347

23452348
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
23462349

2350+
- **ignoreStoreReadErrorWithClusterBreakingPotential** <!--(*in query*)-->**查询参数**): boolean
2351+
2352+
<a href="{{< ref "../common-parameters/common-parameters#ignoreStoreReadErrorWithClusterBreakingPotential" >}}">ignoreStoreReadErrorWithClusterBreakingPotential</a>
2353+
23472354
- **labelSelector** <!--(*in query*)-->**查询参数**): string
23482355

23492356
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>

0 commit comments

Comments
 (0)