Book description
If your organization is preparing to move toward a cloud-native computing architecture, this cookbook shows you how to successfully use Kubernetes, the de-facto standard for automating the deployment, scaling, and management of containerized applications. With more than 80 proven recipes, developers, system administrators, and architects will quickly learn how to get started with Kubernetes and understand its powerful API.
Through the course of the book, authors Sébastien Goasguen and Michael Hausenblas provide several detailed solutions for installing, interacting with, and using Kubernetes in development and production. You’ll learn how to adapt the system to your particular needs and become familiar with the wider Kubernetes ecosystem. Each standalone chapter features recipes written in O’Reilly’s popular problem-solution-discussion format.
Recipes in this cookbook focus on:
- Creating a Kubernetes cluster
- Using the Kubernetes command-line interface
- Managing fundamental workload types
- Working with services
- Exploring the Kubernetes API
- Managing stateful and non-cloud native apps
- Working with volumes and configuration data
- Cluster-level and application-level scaling
- Securing your applications
- Monitoring and logging
- Maintenance and troubleshooting
Publisher resources
Table of contents
- Preface
- Getting Started with Kubernetes
-
Creating a Kubernetes Cluster
- 2.1. Installing kubeadm to Create a Kubernetes Cluster
- 2.2. Bootstrapping a Kubernetes Cluster Using kubeadm
- 2.3. Downloading a Kubernetes Release from GitHub
- 2.4. Downloading Client and Server Binaries
- 2.5. Using a hyperkube Image to Run a Kubernetes Master Node with Docker
- 2.6. Writing a systemd Unit File to Run Kubernetes Components
- 2.7. Creating a Kubernetes Cluster on Google Kubernetes Engine (GKE)
- 2.8. Creating a Kubernetes Cluster on Azure Container Service (ACS)
- Learning to Use the Kubernetes Client
- Creating and Modifying Fundamental Workloads
- Working with Services
-
Exploring the Kubernetes API and Key Metadata
- 6.1. Discovering API Endpoints of the Kubernetes API Server
- 6.2. Understanding the Structure of a Kubernetes Manifest
- 6.3. Creating Namespaces to Avoid Name Collisions
- 6.4. Setting Quotas Within a Namespace
- 6.5. Labeling an Object
- 6.6. Using Labels for Queries
- 6.7. Annotating a Resource with One Command
- Managing Specialized Workloads
-
Volumes and Configuration Data
- 8.1. Exchanging Data Between Containers via a Local Volume
- 8.2. Passing an API Access Key to a Pod Using a Secret
- 8.3. Providing Configuration Data to an Application
- 8.4. Using a Persistent Volume with Minikube
- 8.5. Understanding Data Persistency on Minikube
- 8.6. Dynamically Provisioning Persistent Storage on GKE
- Scaling
- Security
-
Monitoring and Logging
- 11.1. Accessing the Logs of a Container
- 11.2. Recover from a Broken State with a Liveness Probe
- 11.3. Controlling Traffic Flow to a Pod Using a Readiness Probe
- 11.4. Adding Liveness and Readiness Probes to Your Deployments
- 11.5. Enabling Heapster on Minikube to Monitor Resources
- 11.6. Using Prometheus on Minikube
- 11.7. Using Elasticsearch–Fluentd–Kibana (EFK) on Minikube
-
Maintenance and Troubleshooting
- 12.1. Enabling Autocomplete for kubectl
- 12.2. Removing a Pod from a Service
- 12.3. Accessing a ClusterIP Service Outside the Cluster
- 12.4. Understanding and Parsing Resource Statuses
- 12.5. Debugging Pods
- 12.6. Getting a Detailed Snapshot of the Cluster State
- 12.7. Adding Kubernetes Worker Nodes
- 12.8. Draining Kubernetes Nodes for Maintenance
- 12.9. Managing etcd
- Developing Kubernetes
-
The Ecosystem
- 14.1. Installing Helm, the Kubernetes Package Manager
- 14.2. Using Helm to Install Applications
- 14.3. Creating Your Own Chart to Package Your Application with Helm
- 14.4. Converting Your Docker Compose Files to Kubernetes Manifests
- 14.5. Creating a Kubernetes Cluster with kubicorn
- 14.6. Storing Encrypted Secrets in Version Control
- 14.7. Deploying Functions with kubeless
- Resources
- Index
Product information
- Title: Kubernetes Cookbook
- Author(s):
- Release date: March 2018
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491979686
You might also like
video
Python Fundamentals
51+ hours of video instruction. Overview The professional programmer’s Deitel® video guide to Python development with …
book
Kubernetes Best Practices
In this practical guide, four Kubernetes professionals with deep experience in distributed systems, enterprise application development, …
video
Kubernetes Fundamentals
This is a crash course on Kubernetes, designed for those new to Kubernetes and for those …
book
Python for DevOps
Much has changed in technology over the past decade. Data is hot, the cloud is ubiquitous, …