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

Deployment Theory

At a high level, we start with application code. That gets packaged as a container and wrapped in a Pod so it can run on Kubernetes. However, Pods don't self-heal, they don't scale, and they don't allow for easy updates or rollbacks. Deployments do all of these. As a result, we almost always run Pods via Deployments.

Figure 5.1 shows some Pods being managed by a Deployment.

Figure 5.1: Pods being managed by a deployment
Figure 5.1: Pods being managed by a deployment

It's important to know that a single Deployment can only manage a single type of Pod. For example, if you have an application with a Pod for the web frontend and another Pod for the catalog service, you'll need two Deployments. However, as we saw in Figure 5.1, a Deployment can manage multiple replicas of the same Pod. For example, Figure 5.1 could be a deployment that currently manages two replicated web server Pods.

The next thing to know is that Deployments are fully fledged objects in...

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