Merge pull request #42307 from asa3311/sync-zh-38

[zh-cn] sync update-api-object-kubectl-patch horizontal-pod-autoscale
pull/42321/head
Kubernetes Prow Robot 2023-07-31 22:50:38 -07:00 committed by GitHub
commit 815af5d218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ is a Pod that has one container:
下面是具有两个副本的 Deployment 的配置文件。每个副本是一个 Pod有一个容器
{{< codenew file="application/deployment-patch.yaml" >}}
{{% codenew file="application/deployment-patch.yaml" %}}
<!--
Create the Deployment:
@ -418,7 +418,7 @@ Here's the configuration file for a Deployment that uses the `RollingUpdate` str
-->
## 使用带 retainKeys 策略的策略合并 patch 更新 Deployment {#use-strategic-merge-patch-to-update-a-deployment-using-the-retainkeys-strategy}
{{< codenew file="application/deployment-retainkeys.yaml" >}}
{{% codenew file="application/deployment-retainkeys.yaml" %}}
<!--
Create the deployment:
@ -651,7 +651,7 @@ Deployment 是支持这些子资源的其中一个例子。
下面是有两个副本的 Deployment 的清单。
{{< codenew file="application/deployment.yaml" >}}
{{% codenew file="application/deployment.yaml" %}}
<!--
Create the Deployment:

View File

@ -726,6 +726,7 @@ behavior:
<!--
`periodSeconds` indicates the length of time in the past for which the policy must hold true.
The maximum value that you can set for `periodSeconds` is 1800 (half an hour).
The first policy _(Pods)_ allows at most 4 replicas to be scaled down in one minute. The second policy
_(Percent)_ allows at most 10% of the current replicas to be scaled down in one minute.
@ -739,6 +740,7 @@ of current replicas. When the number of replicas falls below 40 the first policy
and 4 replicas will be reduced at a time.
-->
`periodSeconds` 表示在过去的多长时间内要求策略值为真。
你可以设置 `periodSeconds` 的最大值为 1800半小时
第一个策略Pods允许在一分钟内最多缩容 4 个副本。第二个策略Percent
允许在一分钟内最多缩容当前副本个数的百分之十。