Hallo Kubernetes: Container, Orchestration, Management, and Monitoring
Hallo Kubernetes: Container, Orchestration, Management, and Monitoring
About the Book
Explore the dynamic world of Kubernetes from the ground up with "Hallo Kubernetes," your comprehensive guide to mastering container orchestration, management, and monitoring. This book provides an extensive look into how Kubernetes operates, coupled with detailed exercises to build, manage, and scale applications effectively using this powerful platform.
Starting with a clear introduction to what Kubernetes is and why it's a game-changer for modern software deployments, the book progresses into hands-on exercises to get you up and running. You'll learn how to install and enable Kubernetes using Docker Desktop, configure Rancher Kubernetes Engine, and manage Kubernetes clusters using various tools such as kubectl and Helm.
Each chapter is meticulously designed to enhance your understanding and skills, focusing on real-world applications of Kubernetes functionalities such as deployments, services, storage solutions, ingress networking, and even Kubernetes secrets for managing sensitive data. The exercises are structured to guide you through basic setups to more advanced configurations, ensuring you gain practical knowledge and confidence in using Kubernetes.
For those looking to dive deeper, the book covers advanced topics such as autoscaling, managing cron jobs, and deploying the Kubernetes Dashboard UI. It also offers insights into the strategic use of Kubernetes namespaces and ingress resources to optimize your container environments for both development and production.
Whether you're a beginner curious about containerization or an experienced developer aiming to leverage Kubernetes at scale, "Hallo Kubernetes" offers the knowledge and tools necessary to navigate and excel in the world of containers and orchestration. Join the ranks of skilled Kubernetes professionals with this essential guide at your side.
Exercises
This book contains exercises to help you learn Kubernetes. You can follow the exercises in the order they are presented in the book.
Exercise 1: Install and Enable Kubernetes using Docker Desktop
Exercise 2: Install Rancher Kubernetes Engine (RKE) on a single node
Exercise 3: Install kubectl client
Exercise 4: Install Red Hat OpenShift on a single node
Exercise 5: Accessing Kubernetes Cluster using kubectl
Exercise 6: Basic Kubernetes CLI - kubectl
Exercise 7: Helm
Exercise 8: oc CLI for OpenShift
Exercise 9: Basic Kubernetes YAML
Exercise 10: Multiple Containers in A Kubernetes Deployment
Exercise 11: Kubernetes ConfigMaps
Exercise 12: Mutiple Kubernetes Deployments in Kubernetes YAML
Exercise 13: Configure Container Resources in A Kubernetes Deployment
Exercise 14: Basic Kubernetes Services
Exercise 15: Deploying MySQL and phpMyAdmin
Exercise 16: Deploying PostgreSQL and pgAdmin
Exercise 17: Deploying NodeJS Application and MongoDB
Exercise 18: Kubernetes Deployment and Service with Namespace
Exercise 19: Service Autoscaling
Exercise 20: External Name Service
Exercise 21: Kubernetes Namespace CRUD Operations
Exercise 22: Accessing Resources From Across Namespaces
Exercise 23: CRUD Operations with Kubernetes Secrets
Exercise 24: Managing Sensitive Data with Kubernetes Secrets - MySQL and phpMyAdmin Use Case
Exercise 25: Kubernetes Dashboard UI on Docker Desktop
Exercise 26: Kubernetes Dashboard UI on Rancher Kubernetes
Exercise 27: CRUD Operations with Kubernetes Persistent Volumes and Volume Claims
Exercise 28: Dynamic Volume Provisioning in Kubernetes Using StorageClasses
Exercise 29: Implementing Persistent Storage in Pods with PVs and PVCs
Exercise 30: Implementing Persistent Storage in PostgreSQL and pgAdmin Pods with PVs and PVCs
Exercise 31: Deploy an Ingress Controller
Exercise 32: Create an Ingress Resource
Exercise 33: Ingress Resource with TLS Termination and SSL Certificates
Exercise 34: Ingress Networking with Annotations
Exercise 35: Ingress Networking for Kubernetes Dashboard UI
Exercise 36: Implementing CronJobs in Kubernetes
Exercise 37: Deploying Kubernetes Metrics Server
Exercise 38: Implementing Auto-Scaling in Kubernetes
Exercise 39: Simulating Kubernetes Pod Autoscaling
Table of Contents
- Introduction
- What is Kubernetes?
- Why use Kubernetes?
- How does Kubernetes work?
- Kubernetes Platforms
- How to Use This Book
- Introduction
- Source Code
- Feedback
- Up and Running Kubernetes
- Prerequisites
- Objectives
- Exercise 1: Install and Enable Kubernetes using Docker Desktop
- Exercise 2: Install Rancher Kubernetes Engine (RKE) on a single node
- Exercise 3: Install kubectl client
- Exercise 4: Install Red Hat OpenShift on a single node
- Conclusion
- Next Steps
- Working with Kubernetes CLI
- Prerequisites
- Objectives
- Introduction
- Exercise 5: Accessing Kubernetes Cluster using kubectl
- Exercise 6: Basic Kubernetes CLI - kubectl
- Exercise 8: oc CLI for OpenShift
- Conclusion
- Next Steps
- Kubernetes Deployments
- Prerequisites
- Objectives
- Introduction
- Exercise 9: Basic Kubernetes YAML
- Exercise 10: Multiple Containers in A Kubernetes Deployment
- Exercise 11: Kubernetes ConfigMaps
- Exercise 12: Multiple Kubernetes Deployments in Kubernetes YAML
- Exercise 13: Configure Container Resources in A Kubernetes Deployment
- Conclusion
- Next Steps
- Kubernetes Services
- Prerequisites
- Objectives
- Introduction
- Exercise 14: Basic Kubernetes Services
- Exercise 15: Deploying MySQL and phpMyAdmin
- Exercise 16: Deploying PostgreSQL and pgAdmin
- Exercise 17: Deploying NodeJS Application and MongoDB
- Exercise 18: Kubernetes Deployment and Service with Namespace
- Exercise 19: Service Autoscaling
- Exercise 20: External Name Service
- Conclusion
- Next Steps
- Kubernetes Namespace
- Prerequisites
- Objectives
- Introduction
- What are Kubernetes Namespaces?
- Why Use Kubernetes Namespaces?
- Advantages of Using Namespaces
- Exercise 21: Kubernetes Namespace CRUD Operations
- Exercise 22: Accessing Resources From Across Namespaces
- Conclusion
- Next Steps
- Kubernetes Secrets
- Prerequisites
- Objectives
- Introduction
- What are Kubernetes Secrets?
- Why Use Kubernetes Secrets?
- Key Features of Kubernetes Secrets
- Best Practices for Using Kubernetes Secrets
- Exercise 23: CRUD Operations with Kubernetes Secrets
- Exercise 24: Managing Sensitive Data with Kubernetes Secrets - MySQL and phpMyAdmin Use Case
- Conclusion
- Next Steps
- Kubernetes Dashboard UI
- Prerequisites
- Objectives
- Understanding the Kubernetes Dashboard UI
- Exercise 25: Kubernetes Dashboard UI on Docker Desktop
- Exercise 26: Kubernetes Dashboard UI on Rancher Kubernetes
- Conclusion
- Next Steps
- Kubernetes Storage
- Prerequisites
- Objectives
- Understanding Persistent Storage in Kubernetes
- Persistent Volumes (PVs)
- Persistent Volume Claims (PVCs)
- How PVs and PVCs Work Together
- Use Cases for PVs and PVCs
- Exercise 27: CRUD Operations with Kubernetes Persistent Volumes and Volume Claims
- Exercise 28: Dynamic Volume Provisioning in Kubernetes Using StorageClasses
- Exercise 29: Implementing Persistent Storage in Pods with PVs and PVCs
- Exercise 30: Implementing Persistent Storage in PostgreSQL and pgAdmin Pods with PVs and PVCs
- Conclusion
- Next Steps
- Kubernetes Ingress Networking
- Prerequisites
- Objectives
- Introduction
- Exercise 31: Deploy an Ingress Controller
- Exercise 32: Create an Ingress Resource
- Exercise 33: Ingress Resource with TLS Termination and SSL Certificates
- Exercise 34: Ingress Networking with Annotations
- Exercise 35: Ingress Networking for Kubernetes Dashboard UI
- Conclusion
- Next Steps
- Kubernetes Cron Jobs
- Prerequisites
- Objectives
- Understanding Kubernetes CronJobs
- Exercise 36: Implementing CronJobs in Kubernetes
- Conclusion
- Next Steps
- Kubernetes Autoscaling
- Understanding Kubernetes Autoscaling
- Exercise 37: Deploying Kubernetes Metrics Server
- Exercise 38: Implementing Auto-Scaling in Kubernetes
- Exercise 39: Simulating Kubernetes Pod Autoscaling
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