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)
2) Understanding Containers and Containerized Applications
3) Deploying Your First Application on Kubernetes
4) Navigating the Kubernetes API and Object Model (no code files)
5) Running Applications with Pods
6) Managing the Pod Lifecycle and Container Health
7) Organizing Pods and Other Resources using Namespaces and Labels
8) Configuring Applications with ConfigMaps and Secrets
9) Adding Volumes for Storage, Configuration, and Metadata
10) Persisting Data with PersistentVolumes
11) Exposing Pods with Services
12) Using Ingress to Route Traffic to Services
13) Routing Traffic using the Gateway API
14) Scaling and Maintaining Pods with ReplicaSets
15) Automating Application Updates with Deployments
16) Handling Stateful Applications with StatefulSets
17) Deploying Per-Node Workloads with DaemonSets
18) Batch Processing 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.