commit
fa8dd1441d
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue