Skip to content

Commit fa8dd14

Browse files
authored
Merge pull request #34598 from windsonsea/docsite6
[zh] resync deployment yamls
2 parents 484355b + 097197c commit fa8dd14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

content/zh-cn/examples/application/deployment-scale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
selector:
77
matchLabels:
88
app: nginx
9-
replicas: 4 # Update the replicas from 2 to 4
9+
replicas: 4 # 将副本数从 2 更新为 4
1010
template:
1111
metadata:
1212
labels:

content/zh-cn/examples/application/deployment-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ spec:
1414
spec:
1515
containers:
1616
- name: nginx
17-
image: nginx:1.16.1 # Update the version of nginx from 1.14.2 to 1.16.1
17+
image: nginx:1.16.1 # nginx 版本从 1.14.2 更新为 1.16.1
1818
ports:
1919
- containerPort: 80

content/zh-cn/examples/application/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
selector:
77
matchLabels:
88
app: nginx
9-
replicas: 2 # tells deployment to run 2 pods matching the template
9+
replicas: 2 # 告知 Deployment 运行 2 个与该模板匹配的 Pod
1010
template:
1111
metadata:
1212
labels:

content/zh-cn/examples/application/update_deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ spec:
1313
spec:
1414
containers:
1515
- name: nginx
16-
image: nginx:1.16.1 # update the image
16+
image: nginx:1.16.1 # 更新该镜像
1717
ports:
1818
- containerPort: 80

0 commit comments

Comments
 (0)