Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Kubernetes Security

You're reading from   Learn Kubernetes Security Securely orchestrate, scale, and manage your microservices in Kubernetes deployments

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781839216503
Length 330 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Pranjal Jumde Pranjal Jumde
Author Profile Icon Pranjal Jumde
Pranjal Jumde
Kaizhe Huang Kaizhe Huang
Author Profile Icon Kaizhe Huang
Kaizhe Huang
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1: Introduction to Kubernetes
2. Chapter 1: Kubernetes Architecture FREE CHAPTER 3. Chapter 2: Kubernetes Networking 4. Chapter 3: Threat Modeling 5. Chapter 4: Applying the Principle of Least Privilege in Kubernetes 6. Chapter 5: Configuring Kubernetes Security Boundaries 7. Section 2: Securing Kubernetes Deployments and Clusters
8. Chapter 6: Securing Cluster Components 9. Chapter 7: Authentication, Authorization, and Admission Control 10. Chapter 8: Securing Kubernetes Pods 11. Chapter 9: Image Scanning in DevOps Pipelines 12. Chapter 10: Real-Time Monitoring and Resource Management of a Kubernetes Cluster 13. Chapter 11: Defense in Depth 14. Section 3: Learning from Mistakes and Pitfalls
15. Chapter 12: Analyzing and Detecting Crypto-Mining Attacks 16. Chapter 13: Learning from Kubernetes CVEs 17. Assessments 18. Other Books You May Enjoy

Communicating between pods

Kubernetes pods are dynamic beings and ephemeral. When a set of pods is created from a deployment or a DaemonSet, each pod gets its own IP address; however, when patching happens or a pod dies and restarts, pods may have a new IP address assigned. This leads to two fundamental communication problems, given a set of pods (frontend) needs to communicate to another set of pods (backend), detailed as follows:

  • Given that the IP addresses may change, what are the valid IP addresses of the target pods?
  • Knowing the valid IP addresses, which pod should we communicate to?

Now, let's jump into the Kubernetes service as it is the solution for these two problems.

The Kubernetes service

The Kubernetes service is an abstraction of a grouping of sets of pods with a definition of how to access the pods. The set of pods targeted by a service is usually determined by a selector based on pod labels. The Kubernetes service also gets an IP address...

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 $19.99/month. Cancel anytime