From 097197c1a3a1477de084adb2d9719cbe3f4611b6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Jun 2022 18:01:28 +0800 Subject: [PATCH] [zh] resync deployment yamls --- content/zh-cn/examples/application/deployment-scale.yaml | 2 +- content/zh-cn/examples/application/deployment-update.yaml | 2 +- content/zh-cn/examples/application/deployment.yaml | 2 +- content/zh-cn/examples/application/update_deployment.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/zh-cn/examples/application/deployment-scale.yaml b/content/zh-cn/examples/application/deployment-scale.yaml index 01fe96d845..f6c43ab7f4 100644 --- a/content/zh-cn/examples/application/deployment-scale.yaml +++ b/content/zh-cn/examples/application/deployment-scale.yaml @@ -6,7 +6,7 @@ spec: selector: matchLabels: app: nginx - replicas: 4 # Update the replicas from 2 to 4 + replicas: 4 # 将副本数从 2 更新为 4 template: metadata: labels: diff --git a/content/zh-cn/examples/application/deployment-update.yaml b/content/zh-cn/examples/application/deployment-update.yaml index 1c0b9d1ab8..15638fa29c 100644 --- a/content/zh-cn/examples/application/deployment-update.yaml +++ b/content/zh-cn/examples/application/deployment-update.yaml @@ -14,6 +14,6 @@ spec: spec: containers: - name: nginx - image: nginx:1.16.1 # Update the version of nginx from 1.14.2 to 1.16.1 + image: nginx:1.16.1 # 将 nginx 版本从 1.14.2 更新为 1.16.1 ports: - containerPort: 80 diff --git a/content/zh-cn/examples/application/deployment.yaml b/content/zh-cn/examples/application/deployment.yaml index dbed8bc72b..087d7010ca 100644 --- a/content/zh-cn/examples/application/deployment.yaml +++ b/content/zh-cn/examples/application/deployment.yaml @@ -6,7 +6,7 @@ spec: selector: matchLabels: app: nginx - replicas: 2 # tells deployment to run 2 pods matching the template + replicas: 2 # 告知 Deployment 运行 2 个与该模板匹配的 Pod template: metadata: labels: diff --git a/content/zh-cn/examples/application/update_deployment.yaml b/content/zh-cn/examples/application/update_deployment.yaml index 2d7603acb9..28fcf05675 100644 --- a/content/zh-cn/examples/application/update_deployment.yaml +++ b/content/zh-cn/examples/application/update_deployment.yaml @@ -13,6 +13,6 @@ spec: spec: containers: - name: nginx - image: nginx:1.16.1 # update the image + image: nginx:1.16.1 # 更新该镜像 ports: - containerPort: 80