Merge pull request #34598 from windsonsea/docsite6

[zh] resync deployment yamls
pull/34608/head
Kubernetes Prow Robot 2022-06-25 04:46:57 -07:00 committed by GitHub
commit fa8dd1441d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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

View File

@ -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:

View File

@ -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