@@ -9,6 +9,11 @@ Perform a rolling update using kubectl.
99
1010## Updating an application
1111
12+ {{% alert %}}
13+ _ Rolling updates allow Deployments' update to take place with zero downtime by
14+ incrementally updating Pods instances with new ones._
15+ {{% /alert %}}
16+
1217Users expect applications to be available all the time, and developers are expected
1318to deploy new versions of them several times a day. In Kubernetes this is done with
1419rolling updates. A ** rolling update** allows a Deployment update to take place with
@@ -28,35 +33,28 @@ versioned and any Deployment update can be reverted to a previous (stable) versi
2833<!-- animation -->
2934<div class =" col-md-8 " >
3035 <div id =" myCarousel " class =" carousel " data-ride =" carousel " data-interval =" 3000 " >
31- <ol class="carousel-indicators">
32- <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
33- <li data-target="#myCarousel" data-slide-to="1"></li>
34- <li data-target="#myCarousel" data-slide-to="2"></li>
35- <li data-target="#myCarousel" data-slide-to="3"></li>
36- </ol>
37- <div class="carousel-inner" role="listbox">
38- <div class="item carousel-item active">
39- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates1.svg">
40- </div>
41- <div class="item carousel-item">
42- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates2.svg">
43- </div>
44- <div class="item carousel-item">
45- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates3.svg">
46- </div>
47- <div class="item carousel-item">
48- <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates4.svg">
49- </div>
36+ <div class="carousel-inner" role="listbox">
37+ <div class="item carousel-item active">
38+ <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates1.svg">
39+ </div>
40+ <div class="item carousel-item">
41+ <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates2.svg">
42+ </div>
43+ <div class="item carousel-item">
44+ <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates3.svg">
45+ </div>
46+ <div class="item carousel-item">
47+ <img src="/docs/tutorials/kubernetes-basics/public/images/module_06_rollingupdates4.svg">
5048 </div>
51- <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
52- <span class="sr-only ">Previous</span>
53- </a>
54- <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
55- <span class="sr-only">Next</span>
56- </a>
5749 </div>
50+ </div >
5851</div >
5952
53+ {{% alert %}}
54+ _ If a Deployment is exposed publicly, the Service will load-balance the traffic
55+ only to available Pods during the update._
56+ {{% /alert %}}
57+
6058Similar to application Scaling, if a Deployment is exposed publicly, the Service
6159will load-balance the traffic only to available Pods during the update. An available
6260Pod is an instance that is available to the users of the application.
@@ -206,7 +204,7 @@ kubectl describe pods
206204The Deployment is once again using a stable version of the app (` v2 ` ). The rollback
207205was successful.
208206
209- Remember to clean up your local cluster
207+ Remember to clean up your local cluster.
210208
211209``` shell
212210kubectl delete deployments/kubernetes-bootcamp services/kubernetes-bootcamp
0 commit comments