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 the Kubernetes API objects (no code files)
5) Running applications in Pods
6) Managing the lifecycle of the Pod's containers
7) Mounting storage volumes into the Pod's containers
8) Persisting application data with PersistentVolumes
9) Configuring applications using ConfigMaps, Secrets, and the Downward API
10) Organizing objects using Namespaces, labels, and selectors
11) Exposing pods with Services
12) Exposing services externally using Ingresses
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.