@@ -37,7 +37,7 @@ The new Pods are scheduled on Nodes with available resources, and Kubernetes wai
37
37
for those new Pods to start before removing the old Pods.
38
38
-->
39
39
用户希望应用程序始终可用,而开发人员则需要每天多次部署它们的新版本。
40
- 在 Kubernetes 中,这些是通过滚动更新(Rolling Updates )完成的。
40
+ 在 Kubernetes 中,这些是通过滚动更新(Rolling Update )完成的。
41
41
** 滚动更新** 允许通过使用新的实例逐步更新 Pod 实例,实现零停机的 Deployment 更新。
42
42
新的 Pod 将被调度到具有可用资源的节点上。
43
43
@@ -54,27 +54,25 @@ versioned and any Deployment update can be reverted to a previous (stable) versi
54
54
这两个选项都可以配置为(Pod)数字或百分比。
55
55
在 Kubernetes 中,更新是具有版本控制的,任何 Deployment 更新都可以恢复到以前的(稳定)版本。
56
56
57
+ <!--
57
58
## Rolling updates overview
59
+ -->
60
+ ## 滚动更新概述
61
+
62
+ {{< tutorials/carousel id="myCarousel" interval="3000" >}}
63
+ {{< tutorials/carousel-item
64
+ image="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates1.svg"
65
+ active="true" >}}
66
+
67
+ {{< tutorials/carousel-item
68
+ image="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates2.svg" >}}
58
69
59
- <!-- animation -->
60
- <div class =" col-md-8 " >
61
- <div id =" myCarousel " class =" carousel " data-ride =" carousel " data-interval =" 3000 " >
62
- <div class="carousel-inner" role="listbox">
63
- <div class="item carousel-item active">
64
- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates1.svg">
65
- </div>
66
- <div class="item carousel-item">
67
- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates2.svg">
68
- </div>
69
- <div class="item carousel-item">
70
- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates3.svg">
71
- </div>
72
- <div class="item carousel-item">
73
- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates4.svg">
74
- </div>
75
- </div>
76
- </div >
77
- </div >
70
+ {{< tutorials/carousel-item
71
+ image="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates3.svg" >}}
72
+
73
+ {{< tutorials/carousel-item
74
+ image="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates4.svg" >}}
75
+ {{< /tutorials/carousel >}}
78
76
79
77
{{% alert %}}
80
78
<!--
@@ -91,19 +89,20 @@ will load-balance the traffic only to available Pods during the update. An avail
91
89
Pod is an instance that is available to the users of the application.
92
90
93
91
Rolling updates allow the following actions:
92
+ -->
93
+ 与应用程序规模扩缩类似,如果 Deployment 的访问是公开的,Service
94
+ 在更新期间仅将流量负载均衡到可用的 Pod。可用的 Pod 是指对应用的用户可用的实例。
94
95
96
+ 滚动更新允许以下操作:
97
+
98
+ <!--
95
99
* Promote an application from one environment to another (via container image updates)
96
100
* Rollback to previous versions
97
101
* Continuous Integration and Continuous Delivery of applications with zero downtime
98
102
99
103
In the following interactive tutorial, we'll update our application to a new version,
100
104
and also perform a rollback.
101
105
-->
102
- 与应用程序规模扩缩类似,如果 Deployment 的访问是公开的,Service
103
- 在更新期间仅将流量负载均衡到可用的 Pod。可用的 Pod 是指对应用的用户可用的实例。
104
-
105
- 滚动更新允许以下操作:
106
-
107
106
* 将应用程序从一个环境升级到另一个环境(通过容器镜像更新)
108
107
* 回滚到以前的版本
109
108
* 持续集成和持续交付应用程序,无需停机
@@ -175,8 +174,8 @@ you can create it again with:
175
174
-->
176
175
### 验证更新
177
176
178
- 首先,检查服务是否正在运行 ,因为你可能在上一个教程步骤中删除了它。
179
- 运行 ` describe services/kubernetes-bootcamp ` ,如果服务缺失 ,
177
+ 首先,检查 Service 是否正在运行 ,因为你可能在上一个教程步骤中删除了它。
178
+ 运行 ` describe services/kubernetes-bootcamp ` ,如果 Service 缺失 ,
180
179
你可以使用以下命令重新创建:
181
180
182
181
``` shell
@@ -259,8 +258,7 @@ kubectl get deployments
259
258
Notice that the output doesn't list the desired number of available Pods. Run the
260
259
`get pods` subcommand to list all Pods:
261
260
-->
262
- 注意输出中不会列出期望的可用 Pod 数。运行 ` get pods `
263
- 子命令来列出所有 Pod:
261
+ 注意输出中不会列出期望的可用 Pod 数。运行 ` get pods ` 子命令来列出所有 Pod:
264
262
265
263
``` shell
266
264
kubectl get pods
@@ -304,7 +302,7 @@ Use the `get pods` subcommand to list the Pods again:
304
302
` rollout undo ` 命令会恢复 Deployment 到先前的已知状态(` v2 ` 的镜像)。
305
303
更新是有版本控制的,你可以恢复 Deployment 到任何先前已知状态。
306
304
307
- 使用 ` get pods ` 子命令再次列举 Pod:
305
+ 使用 ` get pods ` 子命令再次列出 Pod:
308
306
309
307
``` shell
310
308
kubectl get pods
0 commit comments