Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Brendan Burns, Joe Beda, Kelsey Hightower

Rating No ratings yet

Kubernetes radically changes the way applications are built and deployed in the cloud. Since its introduction in 2014, this container orchestrator has become one of the largest and most popular open source projects in the world. The updated edition of this practical book shows developers and ops personnel how Kubernetes and container technology can help you achieve new levels of velocity, agility, reliability, and efficiency. Kelsey Hightower, Brendan Burns, and Joe Beda—who’ve worked on Kubernetes at Google and beyond—explain how this system fits into the lifecycle of a distributed application. You’ll learn how to use tools and APIs to automate scalable distributed systems, whether it’s for online services,

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 This is the definitive practical guide for developers and ops professionals who want to master Kubernetes, covering everything from container fundamentals to advanced cluster operations, written by the system's creators. If you're building or deploying cloud-native applications and want to move from theory to hands-on expertise, this book is your essential companion. 【Book Arc】 - **Opening (~0%–10%)**: Introduces the core philosophy of Kubernetes—immutability and declarative configuration—and explains how it radically simplifies building, deploying, and maintaining distributed systems. This stage sets the foundation by contrasting Kubernetes with traditional imperative infrastructure management. - **Early (~10%–29%)**: Dives into container fundamentals, starting with creating and running containers using Docker. It covers the container image format, the Container Runtime Interface (CRI), and the kuard example application, establishing the building blocks for all subsequent Kubernetes work. - **Early (~29%–39%)**: Moves from local container development to cluster deployment, walking through installation on major public cloud providers (GKE, AKS, and AWS) and introducing the kubectl command-line tool for cluster interaction and node inspection. - **Middle (~39%–52%)**: Focuses on the essential kubectl commands and core Kubernetes objects. It covers namespaces, contexts, and the practical skills needed to manage resources, culminating in a deep dive into Pods—the fundamental unit of deployment—including creation, health checks, and deletion. - **Middle (~52%–100%)**: Progresses to advanced topics including HTTP load balancing with Ingress, scaling applications declaratively and imperatively, and managing persistent storage. The book concludes with operational best practices for running production-grade Kubernetes clusters. 【Key Takeaways】 - **Immutability is the core principle** (Early): Container images are immutable artifacts that encapsulate all dependencies, enabling reliable rollbacks and eliminating the "works on my machine" problem. This philosophy extends to all Kubernetes configuration, which is declarative rather than imperative. - **Declarative configuration defines desired state** (Early): Instead of issuing commands, you describe what the system should look like, and Kubernetes continuously works to match reality to that description. This shift from imperative to declarative management is fundamental to Kubernetes' reliability and self-healing capabilities. - **Containers solve dependency and encapsulation problems** (Early): By bundling an application with its runtime environment, containers solve the labor-intensive task of rolling out new versions across distributed systems. The Docker image format, standardized as OCI, is the default and most popular packaging method. - **Kubernetes abstracts infrastructure from developers** (Early): Application-oriented APIs separate developers from specific machines, making it easier to run applications across multiple environments—whether on-premises, in the cloud, or hybrid. This abstraction is a key benefit over traditional cloud APIs that mirror IT infrastructure concepts. - **kubectl is your primary interface** (Middle): Mastery of kubectl commands, namespaces, and contexts is essential for day-to-day Kubernetes operations. The tool supports tab completion and integrates with popular editors, making it a powerful and efficient way to interact with the cluster API. - **Pods are the fundamental deployment unit** (Middle): Understanding Pods—how to create, inspect, and delete them—is critical. Pods have a termination grace period for graceful shutdown, and deleting a Pod removes its associated data unless you use PersistentVolumes for storage. - **Health checks are essential for reliability** (Middle): Kubernetes supports various health check types beyond HTTP, enabling the system to automatically restart failing containers and maintain service availability. This is crucial for running resilient, self-healing applications. 【Reading Tips】 - **Skim the cloud provider installation sections** (Early): If you're using a managed Kubernetes service, you only need to read the section for your chosen provider (GKE, AKS, or AWS) and then skip ahead. The core concepts are provider-agnostic. - **Deep-read the container and Pod chapters** (Early–Middle): These are the most foundational parts of the book. Spend extra time with the kuard example application—it's used throughout the book and provides a consistent, practical context for learning. - **Practice with the command-line examples** (Throughout): Don't just read the kubectl commands—run them. The book is designed for hands-on learning, and the examples are concrete and reproducible. - **Pay attention to the "gotchas" sections** (Middle–Late): The book includes valuable warnings about common pitfalls, such as overly large container images and the nuances of Ingress path rewriting. These insights come from real-world experience and will save you debugging time. - **Use the book as a reference, not just a read-through** (Late): Once you've covered the fundamentals, keep this book handy as a reference for specific tasks like scaling, load balancing, and storage management. The clear structure makes it easy to jump to relevant sections. 【Coverage Limits】 The excerpts cover the book's core content from container fundamentals through Pods and basic cluster operations, but do not fully detail the later chapters on advanced topics like Ingress, autoscaling, and persistent volumes. The guide's coverage is strongest for the foundational and early-middle sections of the book.
Excerpt 1
91 Configuring DNS 92 Configuring a Local hosts File 92 Using Ingress 92 Simplest Usage 93 Using Hostnames 94 Using Paths 95 Cleaning Up 96 Advanced Ingress...
View in text
Excerpt 2
nfiguration, where the state of the world is defined by the execution of a series of instructions rather than a declaration of the desired state of the world...
View in text
Excerpt 3
ecause each container gets its own IP address, so listening on localhost inside the container doesn’t cause you to listen on your machine. Without the port f...
View in text
Excerpt 4
b server on one machine and the Git synchronizer on another. Consequently, Kubernetes groups multiple containers into a single atomic unit called a Pod. (The...
View in text
Excerpt 5
READY STATUS RESTARTS AGE alpaca-prod-3408831585-4nzfb 1/1 Running 0 6m alpaca-prod-3408831585-kga0a 1/1 Running 0 6m alpaca-test-1004512375-3r1m5 1/1 Runnin...
View in text
Excerpt 6
ating the Service object. 84 | Chapter 7: Service Discovery CHAPTER 8 HTTP Load Balancing with Ingress A critical part of any application is getting network...
View in text
Excerpt 7
licaSets provides the foundation for building robust appli‐ cations with automatic failover, and makes deploying those applications a breeze by enabling scal...
View in text
Excerpt 8
replicas, for a total of 12 (120%) in the service. It will then scale the old ReplicaSet down to 8 replicas, for a total of 10 (8 old, 2 new) in the service....
View in text
Tags
AI categories
Cloud NativeDevOpsTechnology
ISBN: 1492046485
Publisher: O'Reilly Media
Publish Year: 2019
Language: English
Pages: 277
File Format: PDF
File Size: 2.8 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…