Skip to content

Commit 815af5d

Browse files
authored
Merge pull request #42307 from asa3311/sync-zh-38
[zh-cn] sync update-api-object-kubectl-patch horizontal-pod-autoscale
2 parents 6ff1256 + f146ced commit 815af5d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

content/zh-cn/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ is a Pod that has one container:
3737

3838
下面是具有两个副本的 Deployment 的配置文件。每个副本是一个 Pod,有一个容器:
3939

40-
{{< codenew file="application/deployment-patch.yaml" >}}
40+
{{% codenew file="application/deployment-patch.yaml" %}}
4141

4242
<!--
4343
Create the Deployment:
@@ -418,7 +418,7 @@ Here's the configuration file for a Deployment that uses the `RollingUpdate` str
418418
-->
419419
## 使用带 retainKeys 策略的策略合并 patch 更新 Deployment {#use-strategic-merge-patch-to-update-a-deployment-using-the-retainkeys-strategy}
420420

421-
{{< codenew file="application/deployment-retainkeys.yaml" >}}
421+
{{% codenew file="application/deployment-retainkeys.yaml" %}}
422422

423423
<!--
424424
Create the deployment:
@@ -651,7 +651,7 @@ Deployment 是支持这些子资源的其中一个例子。
651651

652652
下面是有两个副本的 Deployment 的清单。
653653

654-
{{< codenew file="application/deployment.yaml" >}}
654+
{{% codenew file="application/deployment.yaml" %}}
655655

656656
<!--
657657
Create the Deployment:

content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ behavior:
726726

727727
<!--
728728
`periodSeconds` indicates the length of time in the past for which the policy must hold true.
729+
The maximum value that you can set for `periodSeconds` is 1800 (half an hour).
729730
The first policy _(Pods)_ allows at most 4 replicas to be scaled down in one minute. The second policy
730731
_(Percent)_ allows at most 10% of the current replicas to be scaled down in one minute.
731732

@@ -739,6 +740,7 @@ of current replicas. When the number of replicas falls below 40 the first policy
739740
and 4 replicas will be reduced at a time.
740741
-->
741742
`periodSeconds` 表示在过去的多长时间内要求策略值为真。
743+
你可以设置 `periodSeconds` 的最大值为 1800(半小时)。
742744
第一个策略(Pods)允许在一分钟内最多缩容 4 个副本。第二个策略(Percent)
743745
允许在一分钟内最多缩容当前副本个数的百分之十。
744746

0 commit comments

Comments
 (0)