Kubernetes: Up and Running 9781491935675

Copyright; Table of Contents; Preface; Kubernetes: A Dedication; Who Should Read This Book; Why We Wrote This Book; A Wo

2,129 242 2MB

English Year 2017

Report DMCA / Copyright


Kubernetes: Up and Running

Table of contents :
Table of Contents
Kubernetes: A Dedication
Who Should Read This Book
Why We Wrote This Book
A Word on Cloud-Native Applications Today
Navigating This Book
Online Resources
Conventions Used in This Book
Using Code Examples
O'Reilly Safari
How to Contact Us
Chapter 1. Introduction
The Value of Immutability
Declarative Configuration
Self-Healing Systems
Scaling Your Service and Your Teams
Easy Scaling for Applications and Clusters
Scaling Development Teams with Microservices
Separation of Concerns for Consistency and Scaling. Abstracting Your InfrastructureEfficiency
Chapter 2. Creating and Running Containers
Container Images
The Docker Image Format
Building Application Images with Docker
Image Security
Optimizing Image Sizes
Storing Images in a Remote Registry
The Docker Container Runtime
Running Containers with Docker
Exploring the kuard Application
Limiting Resource Usage
Chapter 3. Deploying a Kubernetes Cluster
Installing Kubernetes on a Public Cloud Provider
Google Container Service
Installing Kubernetes with Azure Container Service. Installing Kubernetes on Amazon Web ServicesInstalling Kubernetes Locally Using minikube
Running Kubernetes on Raspberry Pi
The Kubernetes Client
Checking Cluster Status
Listing Kubernetes Worker Nodes
Cluster Components
Kubernetes Proxy
Kubernetes DNS
Kubernetes UI
Chapter 4. Common kubectl Commands
Viewing Kubernetes API Objects
Creating, Updating, and Destroying Kubernetes Objects
Labeling and Annotating Objects
Debugging Commands
Chapter 5. Pods
Pods in Kubernetes
Thinking with Pods
The Pod Manifest
Creating a Pod. Creating a Pod ManifestRunning Pods
Listing Pods
Pod Details
Deleting a Pod
Accessing Your Pod
Using Port Forwarding
Getting More Info with Logs
Running Commands in Your Container with exec
Copying Files to and from Containers
Health Checks
Liveness Probe
Readiness Probe
Types of Health Checks
Resource Management
Resource Requests: Minimum Required Resources
Capping Resource Usage with Limits
Persisting Data with Volumes
Using Volumes with Pods
Different Ways of Using Volumes with Pods
Persisting Data Using Remote Disks
Putting It All Together
Summary. Chapter 6. Labels and AnnotationsLabels
Applying Labels
Modifying Labels
Label Selectors
Label Selectors in API Objects
Defining Annotations
Chapter 7. Service Discovery
What Is Service Discovery?
The Service Object
Service DNS
Readiness Checks
Looking Beyond the Cluster
Cloud Integration
Advanced Details
Manual Service Discovery
kube-proxy and Cluster IPs
Cluster IP Environment Variables
Chapter 8. ReplicaSets
Reconciliation Loops
Relating Pods and ReplicaSets
Adopting Existing Containers
Quarantining Containers.

Polecaj historie