Kubernetes: Up and Running, 2nd Edition
Read it now on the O’Reilly learning platform with a 10-day free trial.
O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
Book description
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, machine learning applications, or a cluster of Raspberry Pi computers.
- Create a simple cluster to learn how Kubernetes works
- Dive into the details of deploying an application using Kubernetes
- Learn specialized objects in Kubernetes, such as DaemonSets, jobs, ConfigMaps, and secrets
- Explore deployments that tie together the lifecycle of a complete application
- Get practical examples of how to develop and deploy real-world applications in Kubernetes
Show and hide more
Publisher resources
Table of contents Product information
Table of contents
- Preface
- Kubernetes: A Dedication
- Who Should Read This Book
- Why We Wrote This Book
- Why We Updated This Book
- A Word on Cloud-Native Applications Today
- Navigating This Book
- Online Resources
- Conventions Used in This Book
- Using Code Examples
- O’Reilly Online Learning
- How to Contact Us
- Acknowledgments
- Velocity
- The Value of Immutability
- Declarative Configuration
- Self-Healing Systems
- Decoupling
- Easy Scaling for Applications and Clusters
- Scaling Development Teams with Microservices
- Separation of Concerns for Consistency and Scaling
- Container Images
- The Docker Image Format
- Dockerfiles
- Optimizing Image Sizes
- Image Security
- Running Containers with Docker
- Exploring the kuard Application
- Limiting Resource Usage
- Installing Kubernetes on a Public Cloud Provider
- Google Kubernetes Engine
- Installing Kubernetes with Azure Kubernetes Service
- Installing Kubernetes on Amazon Web Services
- Checking Cluster Status
- Listing Kubernetes Worker Nodes
- Kubernetes Proxy
- Kubernetes DNS
- Kubernetes UI
- Namespaces
- Contexts
- Viewing Kubernetes API Objects
- Creating, Updating, and Destroying Kubernetes Objects
- Labeling and Annotating Objects
- Debugging Commands
- Command Autocompletion
- Alternative Ways of Viewing Your Cluster
- Summary
- Pods in Kubernetes
- Thinking with Pods
- The Pod Manifest
- Creating a Pod
- Creating a Pod Manifest
- Listing Pods
- Pod Details
- Deleting a Pod
- Using Port Forwarding
- Getting More Info with Logs
- Running Commands in Your Container with exec
- Copying Files to and from Containers
- Liveness Probe
- Readiness Probe
- Types of Health Checks
- Resource Requests: Minimum Required Resources
- Capping Resource Usage with Limits
- Using Volumes with Pods
- Different Ways of Using Volumes with Pods
- Persisting Data Using Remote Disks
- Labels
- Applying Labels
- Modifying Labels
- Label Selectors
- Label Selectors in API Objects
- Labels in the Kubernetes Architecture
- Defining Annotations
- What Is Service Discovery?
- The Service Object
- Service DNS
- Readiness Checks
- Endpoints
- Manual Service Discovery
- kube-proxy and Cluster IPs
- Cluster IP Environment Variables
- Ingress Spec Versus Ingress Controllers
- Installing Contour
- Configuring DNS
- Configuring a Local hosts File
- Simplest Usage
- Using Hostnames
- Using Paths
- Cleaning Up
- Running Multiple Ingress Controllers
- Multiple Ingress Objects
- Ingress and Namespaces
- Path Rewriting
- Serving TLS
- Reconciliation Loops
- Relating Pods and ReplicaSets
- Adopting Existing Containers
- Quarantining Containers
- Pod Templates
- Labels
- Finding a ReplicaSet from a Pod
- Finding a Set of Pods for a ReplicaSet
- Imperative Scaling with kubectl scale
- Declaratively Scaling with kubectl apply
- Autoscaling a ReplicaSet
- Your First Deployment
- Deployment Internals
- Scaling a Deployment
- Updating a Container Image
- Rollout History
- Recreate Strategy
- RollingUpdate Strategy
- Slowing Rollouts to Ensure Service Health
- DaemonSet Scheduler
- Creating DaemonSets
- Limiting DaemonSets to Specific Nodes
- Adding Labels to Nodes
- Node Selectors
- Rolling Update of a DaemonSet
- The Job Object
- Job Patterns
- One Shot
- Parallelism
- Work Queues
- ConfigMaps
- Creating ConfigMaps
- Using a ConfigMap
- Creating Secrets
- Consuming Secrets
- Private Docker Registries
- Listing
- Creating
- Updating
- Role-Based Access Control
- Identity in Kubernetes
- Understanding Roles and Role Bindings
- Roles and Role Bindings in Kubernetes
- Testing Authorization with can-i
- Managing RBAC in Source Control
- Aggregating ClusterRoles
- Using Groups for Bindings
- Importing External Services
- Services Without Selectors
- Limitations of External Services: Health Checking
- Running a MySQL Singleton
- Dynamic Volume Provisioning
- Properties of StatefulSets
- Manually Replicated MongoDB with StatefulSets
- Automating MongoDB Cluster Creation
- Persistent Volumes and StatefulSets
- One Final Thing: Readiness Probes
- What It Means to Extend Kubernetes
- Points of Extensibility
- Patterns for Custom Resources
- Just Data
- Compilers
- Operators
- Getting Started
- Jupyter
- Parse
- Prerequisites
- Building the parse-server
- Deploying the parse-server
- Testing Parse
- Configuring Ghost
- Configuring Redis
- Creating a Redis Service
- Deploying Redis
- Playing with Our Redis Cluster
- Principles to Guide Us
- Filesystems as the Source of Truth
- The Role of Code Review
- Feature Gates and Guards
- Filesystem Layout
- Managing Periodic Versions
- Goals
- Progression of a Release
- Parameterizing with Helm and Templates
- Filesystem Layout for Parameterization
- Architectures for Worldwide Deployment
- Implementing Worldwide Deployment
- Dashboards and Monitoring for Worldwide Deployments
- Parts List
- Flashing Images
- First Boot: Master
- Setting Up Networking
- Installing Kubernetes
- Setting Up the Cluster
Show and hide more
Product information
- Title: Kubernetes: Up and Running, 2nd Edition
- Author(s): Brendan Burns, Joe Beda, Kelsey Hightower
- Release date: October 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492046530
You might also like
Check it out now on O’Reilly
Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.