Once upon a time Kubernetes
Once upon a time Kubernetes
Container Orchestration
About the Book
This book is here to guide you on your journey to mastering container management at scale! Don't worry if you're new to Kubernetes; the chapters start with fundamentals and gradually build up to more advanced topics, making it easy to follow along and learn at your own pace.
Learning to manage containers at scale is achievable. You can download the Community Edition for free right now to see if the content meets your expectations. If your experience is positive, you can confidently purchase the complete version of the book.
The chapters follow a logical order based on Kubernetes architecture. We begin by explaining the basics, but the complexity increases as you progress. By the time you finish all the chapters, you will have a solid foundation of knowledge to tackle new professional challenges.
Resources used by this book to help you during the learning journey
- A Kubernetes cluster with multiple nodes running locally with no infrastructure costs.
- A load balancer simulator running locally with no infrastructure costs.
- Images throughout all chapters enhance your understanding of the concepts.
- Hands-on examples for each chapter to explore the concepts learned.
- Asciinema video links that support your practices.
- kubexercises tool with exercises at the end of chapters.
Team Discounts
Get a team discount on this book!
Table of Contents
- 1.About This Book
- How to use this book
- Source code and activities
- Exercises and activities
- Comments, suggestions, and recommendations
- 2.The Container Age
- What is Kubernetes?
- Kubernetes environments
- Create a cluster in 40 seconds
- Troubleshooting
- Deleting the cluster
- Summary
- 3.Kubernetes Architecture
- Control-plane components
- Data-plane components
- Kubernetes Add-ons
- Objects in the cluster
- kubectl command structure
- Summary
- 4.Pods
- First microservice up and running
- Checking the microservice logs
- Getting pod information
- Removing the pod
- Using environment variables
- Accessing the microservice
- Multiple microservices in a pod
- Activities to practice
- Summary
- 5.Labels
- Creating pods with labels
- Filtering pods using labels
- Performing actions on groups of pods
- Generating the pod structure
- Label recommendations
- Activities to practice
- Summary
- 6.ReplicaSets
- Specifications and startup
- Ensuring high availability
- Automatic restarts for applications
- Activities to practice
- Summary
- 7.Deployments
- Specifications and startup
- Updating applications with zero downtime
- Managing errors during application updates
- Distributing applications across nodes and regions
- Preventing service interruptions during node updates
- Deployment recommendations
- Activities to practice
- Summary
- 8.Services
- Specifications and startup
- Communication between applications
- Communication from external clients
- Load balancers
- Networks in Kubernetes
- Service recommendations
- Activities to practice
- Summary
- 9.Ingress
- Nginx as an Ingress controller
- Specifications and startup
- Using domain names
- Ingress class
- Ingress recommendations
- Summary
- 10.Gateway API
- Nginx as a Gateway controller
- Specifications and startup
- Blue/Green and Canary traffic segmentation
- Gateway API recommendations
- Summary
- 11.Namespaces
- Specifications and startup
- Grouping objects in namespaces
- Communication between applications
- Namespace recommendations
- Summary
- 12.Volumes
- Volume specifications within the pod
- Create a Kubernetes cluster
- EmptyDir volume type
- HostPath volume type
- External volumes to the cluster
- PersistentVolume
- PersistentVolumeClaim
- Workflow using PV and PVC
- Summary
- 13.ConfigMaps
- ConfigMap specifications
- Create a Kubernetes cluster
- Create/List/Read from terminal
- ConfigMap used as environment variable
- ConfigMap used as volume
- Generate ConfigMap structure
- Summary
- 14.Secrets
- Secret specifications
- Create a Kubernetes cluster
- Generate Secret structure
- Create/List/Read from terminal
- Secret used as environment variable
- Secret used as volume
- Summary
- 15.Role-Based Access Control (RBAC)
- Create a Kubernetes cluster
- Managing external users
- KUBECONFIG
- Roles and RoleBindings
- ClusterRoles and ClusterRoleBindings
- Service accounts
- Summary
- 16.Optimizing CPU and RAM
- Create a Kubernetes cluster
- Enable CPU and RAM metrics
- Setting resource boundaries
- Horizontal Pod Autoscaler (HPA)
- Summary
- 17.Using Kubernetes in the Cloud
- DOKS: DigitalOcean Kubernetes
- EKS: Amazon Elastic Kubernetes Service
- GKE: Google Kubernetes Engine
- Summary
- 18.Recommendations and Next Steps
- 1.About This Book
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them