File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
manage-kubernetes-objects Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ is a Pod that has one container:
37
37
38
38
下面是具有两个副本的 Deployment 的配置文件。每个副本是一个 Pod,有一个容器:
39
39
40
- {{< codenew file="application/deployment-patch.yaml" > }}
40
+ {{% codenew file="application/deployment-patch.yaml" % }}
41
41
42
42
<!--
43
43
Create the Deployment:
@@ -418,7 +418,7 @@ Here's the configuration file for a Deployment that uses the `RollingUpdate` str
418
418
-->
419
419
# # 使用带 retainKeys 策略的策略合并 patch 更新 Deployment {#use-strategic-merge-patch-to-update-a-deployment-using-the-retainkeys-strategy}
420
420
421
- {{< codenew file="application/deployment-retainkeys.yaml" > }}
421
+ {{% codenew file="application/deployment-retainkeys.yaml" % }}
422
422
423
423
<!--
424
424
Create the deployment :
@@ -651,7 +651,7 @@ Deployment 是支持这些子资源的其中一个例子。
651
651
652
652
下面是有两个副本的 Deployment 的清单。
653
653
654
- {{< codenew file="application/deployment.yaml" > }}
654
+ {{% codenew file="application/deployment.yaml" % }}
655
655
656
656
<!--
657
657
Create the Deployment:
Original file line number Diff line number Diff line change @@ -726,6 +726,7 @@ behavior:
726
726
727
727
<!--
728
728
` 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).
729
730
The first policy _(Pods)_ allows at most 4 replicas to be scaled down in one minute. The second policy
730
731
_(Percent)_ allows at most 10% of the current replicas to be scaled down in one minute.
731
732
@@ -739,6 +740,7 @@ of current replicas. When the number of replicas falls below 40 the first policy
739
740
and 4 replicas will be reduced at a time.
740
741
-->
741
742
` periodSeconds` 表示在过去的多长时间内要求策略值为真。
743
+ 你可以设置 `periodSeconds` 的最大值为 1800(半小时)。
742
744
第一个策略(Pods)允许在一分钟内最多缩容 4 个副本。第二个策略(Percent)
743
745
允许在一分钟内最多缩容当前副本个数的百分之十。
744
746
You can’t perform that action at this time.
0 commit comments