Skip to content

Commit

Permalink
sync update-api-object-kubectl-patch horizontal-pod-autoscale install…
Browse files Browse the repository at this point in the history
…-kubectl-linux
  • Loading branch information
asa3311 committed Aug 1, 2023
1 parent 2692867 commit f146ced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -651,7 +651,7 @@ Deployment 是支持这些子资源的其中一个例子。

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

{{< codenew file="application/deployment.yaml" >}}
{{% codenew file="application/deployment.yaml" %}}

<!--
Create the Deployment:
Expand Down
Expand Up @@ -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.
Expand All @@ -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)
允许在一分钟内最多缩容当前副本个数的百分之十。

Expand Down

0 comments on commit f146ced

Please sign in to comment.