This repository contains all the code (and some additional files) from the Kubernetes in Action, 2nd Edition book.
The book hasn't been published yet, but is available through the Manning early-access program. You can take a quick look online or purchase the book at http://kubernetes-in-action.com/second-edition. Use code au35luk to get a 35% discount.
The code archive is organized per chapter. You'll find a description of the files by following the links below.
1) Introducing Kubernetes (no code files)
3) Deploying your first application
4) Introducing Kubernetes API objects (no code files)
7) Attaching storage volumes to Pods
8) Persisting data in PersistentVolumes
9) Configuration via ConfigMaps, Secrets, and the Downward API
10) Organizing objects using Namespaces and Labels
11) Exposing Pods with Services
12) Exposing services with Ingress
13) Replicating Pods with ReplicaSets
14) Managing Pods with Deployments
15) Deploying stateful workloads with StatefulSets
16) Deploying node agents and daemons with DaemonSets
17) Running batch workloads with Jobs and CronJobs
If you'd like to contribute a code improvement or a bug fix, please submit a pull request in this GitHub repository. Note that some files are intentionally incomplete and may even contain intentional errors for demonstration purposes.