[zh] resync deployment yamls

This commit is contained in:
Michael
2022-06-25 18:01:28 +08:00
parent ed23f394e2
commit 097197c1a3
4 changed files with 4 additions and 4 deletions
@@ -6,7 +6,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: nginx app: nginx
replicas: 4 # Update the replicas from 2 to 4 replicas: 4 # 将副本数从 2 更新为 4
template: template:
metadata: metadata:
labels: labels:
@@ -14,6 +14,6 @@ spec:
spec: spec:
containers: containers:
- name: nginx - 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: ports:
- containerPort: 80 - containerPort: 80
@@ -6,7 +6,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: nginx app: nginx
replicas: 2 # tells deployment to run 2 pods matching the template replicas: 2 # 告知 Deployment 运行 2 个与该模板匹配的 Pod
template: template:
metadata: metadata:
labels: labels:
@@ -13,6 +13,6 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: nginx:1.16.1 # update the image image: nginx:1.16.1 # 更新该镜像
ports: ports:
- containerPort: 80 - containerPort: 80