@@ -37,7 +37,7 @@ The new Pods are scheduled on Nodes with available resources, and Kubernetes wai
3737for those new Pods to start before removing the old Pods.
3838-->
3939用户希望应用程序始终可用,而开发人员则需要每天多次部署它们的新版本。
40- 在 Kubernetes 中,这些是通过滚动更新(Rolling Updates )完成的。
40+ 在 Kubernetes 中,这些是通过滚动更新(Rolling Update )完成的。
4141** 滚动更新** 允许通过使用新的实例逐步更新 Pod 实例,实现零停机的 Deployment 更新。
4242新的 Pod 将被调度到具有可用资源的节点上。
4343
@@ -54,27 +54,25 @@ versioned and any Deployment update can be reverted to a previous (stable) versi
5454这两个选项都可以配置为(Pod)数字或百分比。
5555在 Kubernetes 中,更新是具有版本控制的,任何 Deployment 更新都可以恢复到以前的(稳定)版本。
5656
57+ <!--
5758## 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" >}}
5869
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 >}}
7876
7977{{% alert %}}
8078<!--
@@ -91,19 +89,20 @@ will load-balance the traffic only to available Pods during the update. An avail
9189Pod is an instance that is available to the users of the application.
9290
9391Rolling updates allow the following actions:
92+ -->
93+ 与应用程序规模扩缩类似,如果 Deployment 的访问是公开的,Service
94+ 在更新期间仅将流量负载均衡到可用的 Pod。可用的 Pod 是指对应用的用户可用的实例。
9495
96+ 滚动更新允许以下操作:
97+
98+ <!--
9599* Promote an application from one environment to another (via container image updates)
96100* Rollback to previous versions
97101* Continuous Integration and Continuous Delivery of applications with zero downtime
98102
99103In the following interactive tutorial, we'll update our application to a new version,
100104and also perform a rollback.
101105-->
102- 与应用程序规模扩缩类似,如果 Deployment 的访问是公开的,Service
103- 在更新期间仅将流量负载均衡到可用的 Pod。可用的 Pod 是指对应用的用户可用的实例。
104-
105- 滚动更新允许以下操作:
106-
107106* 将应用程序从一个环境升级到另一个环境(通过容器镜像更新)
108107* 回滚到以前的版本
109108* 持续集成和持续交付应用程序,无需停机
@@ -175,8 +174,8 @@ you can create it again with:
175174-->
176175### 验证更新
177176
178- 首先,检查服务是否正在运行 ,因为你可能在上一个教程步骤中删除了它。
179- 运行 ` describe services/kubernetes-bootcamp ` ,如果服务缺失 ,
177+ 首先,检查 Service 是否正在运行 ,因为你可能在上一个教程步骤中删除了它。
178+ 运行 ` describe services/kubernetes-bootcamp ` ,如果 Service 缺失 ,
180179你可以使用以下命令重新创建:
181180
182181``` shell
@@ -259,8 +258,7 @@ kubectl get deployments
259258Notice that the output doesn't list the desired number of available Pods. Run the
260259`get pods` subcommand to list all Pods:
261260-->
262- 注意输出中不会列出期望的可用 Pod 数。运行 ` get pods `
263- 子命令来列出所有 Pod:
261+ 注意输出中不会列出期望的可用 Pod 数。运行 ` get pods ` 子命令来列出所有 Pod:
264262
265263``` shell
266264kubectl get pods
@@ -304,7 +302,7 @@ Use the `get pods` subcommand to list the Pods again:
304302` rollout undo ` 命令会恢复 Deployment 到先前的已知状态(` v2 ` 的镜像)。
305303更新是有版本控制的,你可以恢复 Deployment 到任何先前已知状态。
306304
307- 使用 ` get pods ` 子命令再次列举 Pod:
305+ 使用 ` get pods ` 子命令再次列出 Pod:
308306
309307``` shell
310308kubectl get pods
0 commit comments