Leanpub Header

Skip to main content

Learn Kubernetes - Container orchestration using Docker

Be ready to create and run your orchestrated application next week.

You know next to nothing about Kubernetes but need to create and run your first application on Kubernetes using Docker within a week. Don't worry: this book has you covered.

Free With Membership

With Membership

Free!

$11.00

You pay

$11.00

Author earns

$8.80
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
190
Readers
217
Pages
About

About

About the Book

This book is for anyone who needs to run software on Kubernetes. Whether you’re a developer, a DevOps manager or a technician, this book should help you plan and run Kubernetes workloads.

I assume that you have no previous knowledge about containers or containers orchestration.

I made my best to keep this book small, so that you can learn Kubernetes quickly without getting lost in petty details. If you are looking for a reference book where you’ll find answers to all the questions you may have within the next 4 years of your Kubernetes practice, you’ll find other heavy books for that. My purpose is to swiftly provide you with the tools you need to create and run your first cloud-ready application using Kubernetes, then be able to look for more by yourself when needed.

Plus this book is packed with exercises and samples where you create, run and manage your own applications on a Kubernetes cluster.

Read this book, and you can create and run your first Kubernetes application within a week. Or your money back.

Printed paperback version available here.

Share this book

Author

About the Author

Arnaud Weil

Arnaud Weil is a born developer: when he was a kid he was controlling his electric train using an Atari ST and some self-made electronics, then as a teenager created and distributed worldwide one of the first Web browsers for some of the first pocket computers, when the Web was just beginning. In fact, he loves coding.

Turning a passion into a career, Arnaud has been coding all kinds of applications from factory tools to smartphone applications to house control solutions. His status as a freelancer allows him to help his clients with many different projects.

But what Arnaud enjoys most is helping other developers: that's why he teaches, speaks, and writes books.

Other books by Arnaud Weil.

Contents

Table of Contents

Introduction

  1. What this book is not
  2. Prerequisites
  3. How to read this book
  4. Tools you need
  5. Source code

1.Why Kubernetes

  1. 1.1DevOps challenges
  2. 1.2Containers
  3. 1.3Docker containers
  4. 1.4Deploying images
  5. 1.5The need for container orchestration
  6. 1.6What’s K8s?

2.Kubernetes cluster

  1. 2.1Parts of a Kubernetes cluster
  2. 2.2Creating a cluster
  3. 2.3Exercise - Set up your development cluster
  4. 2.4Exercise solution
  5. 2.5Connecting to a cluster

3.Tooling

  1. 3.1Kubernetes Dashboard
  2. 3.2Visual Studio Code
  3. 3.3Helm

4.Running pods

  1. 4.1Deployments and ReplicaSets
  2. 4.2Imperative commands
  3. 4.3Exercise - Use imperative commands
  4. 4.4Exercise solution
  5. 4.5Exercise - Observe Kubernetes handle a failing pod
  6. 4.6Exercise solution
  7. 4.7Declarative commands
  8. 4.8Exercise - Create resources using declarative commands
  9. 4.9Exercise solution
  10. 4.10Exercise - Update a Pod created declaratively
  11. 4.11Exercise solution
  12. 4.12Debugging
  13. 4.13Exercise - Debugging failing Pods
  14. 4.14Exercise solution
  15. 4.15Exercise - Delete created objects
  16. 4.16Exercise solution
  17. 4.17Resources management

5.Exposing services

  1. 5.1The need for services
  2. 5.2Services
  3. 5.3Exercise - Expose a web application to the internet
  4. 5.4Exercise solution
  5. 5.5Exercise - Expose an API inside the cluster
  6. 5.6Exercise solution
  7. 5.7Ingress

6.Volumes

  1. 6.1The need for volumes
  2. 6.2Short-lived storage with Volumes
  3. 6.3Exercise - Create and use a Volume
  4. 6.4Exercise solution
  5. 6.5Persistent storage with PersistentVolumeClaims
  6. 6.6Exercise - Create and use a PersistentVolume
  7. 6.7Exercise solution
  8. I need you, super-hero!

7.Configuration

  1. 7.1Similar but different
  2. 7.2ConfigMap
  3. 7.3Exercise - Create and use a ConfigMap
  4. 7.4Exercise solution
  5. 7.5Secret
  6. 7.6Exercise - Create and use a Secret
  7. 7.7Exercise solution

8.Updating and scaling

  1. 8.1Horizontal scaling
  2. 8.2Automatic horizontal scaling
  3. 8.3Update strategies

9.Sharing a cluster

  1. 9.1Namespaces
  2. 9.2RBAC

10.Helm

  1. 10.1Using Helm
  2. 10.2Creating Helm packages (charts)

A word from the author

Image attributions

The Learn collection

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub