Merge pull request #40957 from Zhuzhenghao/horizontal-pod-autoscaler-v2

[zh] resync page horizontal-pod-autoscaler-v2
pull/40991/head
Kubernetes Prow Robot 2023-05-07 03:55:16 -07:00 committed by GitHub
commit 012cdb2baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 285 additions and 257 deletions

View File

@ -99,34 +99,35 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
- **scaleTargetRef.kind** (string), required
Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-->
**CrossVersionObjectReference 包含足够的信息来让你识别出所引用的资源。**
- **scaleTargetRef.kind** (string),必需
被引用对象的类别;更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
`kind`被引用对象的类别;更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
<!--
- **scaleTargetRef.name** (string), required
Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-->
- **scaleTargetRef.name** (string),必需
被引用对象的名称;更多信息: https://kubernetes.io/zh-cn/docs/concepts/overview/working-with-objects/names/#names
`name`被引用对象的名称更多信息https://kubernetes.io/zh-cn/docs/concepts/overview/working-with-objects/names/#names
<!--
- **scaleTargetRef.apiVersion** (string)
API version of the referent
apiVersion is the API version of the referent
-->
- **scaleTargetRef.apiVersion** (string)
被引用对象的 API 版本。
`apiVersion`被引用对象的 API 版本。
<!--
- **minReplicas** (int32)
@ -198,7 +199,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
- **behavior.scaleDown.policies.type** (string), required
Type is used to specify the scaling policy.
type is used to specify the scaling policy.
-->
**HPAScalingPolicy 是一个单一的策略,它必须在指定的过去时间间隔内保持为 true。**
@ -210,7 +211,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **behavior.scaleDown.policies.value** (int32), required
Value contains the amount of change which is permitted by the policy. It must be greater than zero
value contains the amount of change which is permitted by the policy. It must be greater than zero
-->
- **behavior.scaleDown.policies.value** (int32),必需
@ -220,7 +221,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **behavior.scaleDown.policies.periodSeconds** (int32), required
PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
-->
- **behavior.scaleDown.policies.periodSeconds** (int32),必需
@ -241,7 +242,8 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **behavior.scaleDown.stabilizationWindowSeconds** (int32)
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
-->
- **behavior.scaleDown.stabilizationWindowSeconds** (int32)
@ -299,7 +301,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
- **behavior.scaleUp.policies.type** (string), required
Type is used to specify the scaling policy.
type is used to specify the scaling policy.
-->
**HPAScalingPolicy 是一个单一的策略,它必须在指定的过去时间间隔内保持为 true。**
@ -311,9 +313,8 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **behavior.scaleUp.policies.value** (int32), required
Value contains the amount of change which is permitted by the policy. It must be greater than zero
value contains the amount of change which is permitted by the policy. It must be greater than zero
-->
- **behavior.scaleUp.policies.value** (int32),必需
value 包含策略允许的更改量。它必须大于零。
@ -321,7 +322,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **behavior.scaleUp.policies.periodSeconds** (int32), required
PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
-->
- **behavior.scaleUp.policies.periodSeconds** (int32),必需
@ -342,7 +343,8 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **behavior.scaleUp.stabilizationWindowSeconds** (int32)
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
-->
- **behavior.scaleUp.stabilizationWindowSeconds** (int32)
@ -425,7 +427,6 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
name is the name of the resource in question.
-->
- **metrics.containerResource.name** (string),必需
name 是相关资源的名称。
@ -633,7 +634,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
- **metrics.object.describedObject.kind** (string), required
Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-->
**CrossVersionObjectReference 包含足够的信息来让你识别所引用的资源。**
@ -645,7 +646,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **metrics.object.describedObject.name** (string), required
Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-->
- **metrics.object.describedObject.name** (string),必需
@ -655,7 +656,7 @@ HorizontalPodAutoscalerSpec 描述了 HorizontalPodAutoscaler 预期的功能。
<!--
- **metrics.object.describedObject.apiVersion** (string)
API version of the referent
apiVersion is the API version of the referent
-->
- **metrics.object.describedObject.apiVersion** (string)
@ -1108,7 +1109,7 @@ HorizontalPodAutoscalerStatus 描述了水平 Pod 自动扩缩器的当前状态
- **currentMetrics.containerResource.container** (string), required
Container is the name of the container in the pods of the scaling target
container is the name of the container in the pods of the scaling target
-->
ContainerResourceMetricStatus 指示如何根据请求和限制中指定的 Kubernetes 已知的资源指标进行扩缩容,
@ -1168,7 +1169,7 @@ HorizontalPodAutoscalerStatus 描述了水平 Pod 自动扩缩器的当前状态
<!--
- **currentMetrics.containerResource.name** (string), required
Name is the name of the resource in question.
name is the name of the resource in question.
-->
- **currentMetrics.containerResource.name** (string),必需
@ -1355,19 +1356,19 @@ HorizontalPodAutoscalerStatus 描述了水平 Pod 自动扩缩器的当前状态
- **currentMetrics.object.describedObject.kind** (string), required
Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-->
**CrossVersionObjectReference 包含足够的信息来让你识别所引用的资源。**
- **currentMetrics.object.describedObject.kind** (string),必需
被引用对象的类别;更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
`kind`被引用对象的类别;更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
<!--
- **currentMetrics.object.describedObject.name** (string), required
Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
-->
- **currentMetrics.object.describedObject.name** (string),必需
@ -1377,7 +1378,7 @@ HorizontalPodAutoscalerStatus 描述了水平 Pod 自动扩缩器的当前状态
<!--
- **currentMetrics.object.describedObject.apiVersion** (string)
API version of the referent
apiVersion is the API version of the referent
-->
- **currentMetrics.object.describedObject.apiVersion** (string)
@ -1593,7 +1594,7 @@ HorizontalPodAutoscalerStatus 描述了水平 Pod 自动扩缩器的当前状态
<!--
- **currentMetrics.resource.name** (string), required
Name is the name of the resource in question.
name is the name of the resource in question.
-->
- **currentMetrics.resource.name** (string),必需
@ -1823,6 +1824,10 @@ GET /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **sendInitialEvents** <!--(*in query*)-->**查询参数**: boolean
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
- **timeoutSeconds** <!--(*in query*)-->**查询参数**: integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@ -1888,6 +1893,10 @@ GET /apis/autoscaling/v2/horizontalpodautoscalers
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **sendInitialEvents** <!--(*in query*)-->**查询参数**: boolean
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
- **timeoutSeconds** <!--(*in query*)-->**查询参数**: integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
@ -1922,6 +1931,9 @@ POST /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers
- **namespace** (*in path*): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a>, required
-->
#### 参数
@ -1929,7 +1941,7 @@ POST /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a><!--required-->必需
- **body**<a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a>,必需
- **dryRun** <!--(*in query*)-->**查询参数**: string
@ -1988,12 +2000,15 @@ PUT /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}
- **namespace** (*in path*): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a>, required
-->
- **namespace** **路径参数**: string必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a><!--required-->必需
- **body**<a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a>,必需
- **dryRun** <!--(*in query*)-->**查询参数**: string
@ -2050,12 +2065,15 @@ PUT /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/
- **namespace** (*in path*): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a>, required
-->
- **namespace** **路径参数**: string必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a><!--required-->必需
- **body**<a href="{{< ref "../workload-resources/horizontal-pod-autoscaler-v2#HorizontalPodAutoscaler" >}}">HorizontalPodAutoscaler</a>,必需
- **dryRun** <!--(*in query*)-->**查询参数**: string
@ -2112,12 +2130,15 @@ PATCH /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name
- **namespace** (*in path*): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
-->
- **namespace** **路径参数**: string必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a><!--required-->必需
- **body**<a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
- **dryRun** <!--(*in query*)-->**查询参数**: string
@ -2178,12 +2199,15 @@ PATCH /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name
- **namespace** (*in path*): string, required
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
-->
- **namespace** **路径参数**: string必需
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a><!--required-->必需
- **body**<a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
- **dryRun** <!--(*in query*)-->**查询参数**: string
@ -2344,6 +2368,10 @@ DELETE /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
- **sendInitialEvents** <!--(*in query*)-->**查询参数**: boolean
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
- **timeoutSeconds** <!--(*in query*)-->**查询参数**: integer
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>