Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
The Kubernetes Book

You're reading from   The Kubernetes Book The fastest way to get your head around Kubernetes

Arrow left icon
Product type Paperback
Published in Jun 2019
Publisher
ISBN-13 9781838984380
Length 228 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Nigel Poulton Nigel Poulton
Author Profile Icon Nigel Poulton
Nigel Poulton
Pushkar Joglekar Pushkar Joglekar
Author Profile Icon Pushkar Joglekar
Pushkar Joglekar
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Chapter 1 FREE CHAPTER
2. Kubernetes Primer 3. Chapter 2
4. Kubernetes Principles of Operation 5. Chapter 3
6. Installing Kubernetes 7. Chapter 4
8. Working with Pods 9. Chapter 5
10. Kubernetes Deployments 11. Chapter 6
12. Kubernetes Services 13. Chapter 7
14. Kubernetes Storage 15. Chapter 8
16. Other Important Kubernetes Stuff 17. Chapter 9
18. Threat Modeling Kubernetes 19. Chapter 10
20. Real-World Kubernetes Security 21. Chapter 11
22. What Next

Performing a Rolling Update

In this section, we'll see how to perform a rolling update on the application we've just deployed. We'll assume the new version of the application has already been created and containerized as a Docker image with the edge tag. All that is left to do is use Kubernetes to push the update to production. For this example, we're ignoring real-world continuous integration (CI)/continuous deployment (CD) workflows and version control tools.

The first thing we need to do is update the image tag used in the Deployment's manifest file. The initial version of the app used an image tagged as nigelpoulton/k8sbook:latest. We'll update the .spec.template.spec.containers section of the Deployment manifest to reference the new nigelpoulton/k8sbook:edge image. This will ensure that next time the manifest is POSTed to the API server, all Pods in the Deployment will be updated to run the new edge image.

The following is the updated deploy...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images