Nigel Poulton
This book is for sale at http://leanpub.com/thekubernetesbook
This version was published on 2017-10-27
This is a Leanpub book. Leanpub empowers authors and publishers with the Lean
Publishing process. Lean Publishing is the act of publishing an in-progress ebook
using lightweight tools and many iterations to get reader feedback, pivot until you
have the right book and build traction once you do.
© 2017 Nigel Poulton
, Huge thanks to my wife and kids for putting up with a geek in the house who
genuinely thinks he’s a bunch of software running inside of a container on top
of midrange biological hardware. It can’t be easy living with me!
Massive thanks as well to everyone who watches my Pluralsight videos. I love
connecting with you and really appreciate all the feedback I’ve gotten over the
years. This was one of the major reasons I decided to write this book! I hope it’ll
be an amazing tool helping to you drive your careers even further forward.
One final word to all you ‘old dogs’ out there… get ready to learn some new
tricks!
, Contents
0: About the book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What about a paperback edition . . . . . . . . . . . . . . . . . . . . . . 1
Why should I read this book or care about Kubernetes? . . . . . . . . . . 2
Should I buy the book if I’ve already watched your video training courses?
2Versions of the book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1: Kubernetes Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Kubernetes background . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
A data center OS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2: Kubernetes principles of operation . . . . . . . . . . . . . . . . . . . . . 12
Kubernetes from 40K feet . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Masters and nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
The declarative model and desired state . . . . . . . . . . . . . . . . . .
19
Pods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Pods as the atomic unit . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Deployments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Chapter summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3: Installing Kubernetes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Play with Kubernetes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Minikube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Google Container Engine . . . . . . . . . . . . . . . . . . . . . . 45
(GKE) Kubernetes in AWS . .
Installing . . . . . . . . . . . . . . . . . . . . . . 48
Manually installing Kubernetes . . . . . . . . . . . . . . . . . . . . . . . 53