From e3f943b61866afd18ce8a99e305b0e38a1c15301 Mon Sep 17 00:00:00 2001 From: windsonsea Date: Wed, 11 Oct 2023 10:25:49 +0800 Subject: [PATCH] [zh] update /controllers/deployment.md --- .../workloads/controllers/deployment.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/content/zh-cn/docs/concepts/workloads/controllers/deployment.md b/content/zh-cn/docs/concepts/workloads/controllers/deployment.md index f96341f95d634..eb031308efdd7 100644 --- a/content/zh-cn/docs/concepts/workloads/controllers/deployment.md +++ b/content/zh-cn/docs/concepts/workloads/controllers/deployment.md @@ -2154,9 +2154,9 @@ Here are some Rolling Update Deployment examples that use the `maxUnavailable` a 以下是一些使用 `maxUnavailable` 和 `maxSurge` 的滚动更新 Deployment 的示例: {{< tabs name="tab_with_md" >}} -{{% tab name="Max Unavailable" %}} +{{% tab name="最大不可用" %}} - ```yaml +```yaml apiVersion: apps/v1 kind: Deployment metadata: @@ -2182,12 +2182,12 @@ spec: type: RollingUpdate rollingUpdate: maxUnavailable: 1 - ``` +``` {{% /tab %}} -{{% tab name="Max Surge" %}} +{{% tab name="最大峰值" %}} - ```yaml +```yaml apiVersion: apps/v1 kind: Deployment metadata: @@ -2213,12 +2213,12 @@ spec: type: RollingUpdate rollingUpdate: maxSurge: 1 - ``` +``` {{% /tab %}} -{{% tab name="Hybrid" %}} +{{% tab name="两项混合" %}} - ```yaml +```yaml apiVersion: apps/v1 kind: Deployment metadata: @@ -2245,7 +2245,7 @@ spec: rollingUpdate: maxSurge: 1 maxUnavailable: 1 - ``` +``` {{% /tab %}} {{< /tabs >}} @@ -2261,7 +2261,7 @@ retrying the Deployment. This defaults to 600. In the future, once automatic rol controller will roll back a Deployment as soon as it observes such a condition. --> ### 进度期限秒数 {#progress-deadline-seconds} - + `.spec.progressDeadlineSeconds` 是一个可选字段,用于指定系统在报告 Deployment [进展失败](#failed-deployment) 之前等待 Deployment 取得进展的秒数。 这类报告会在资源状态中体现为 `type: Progressing`、`status: False`、