The DevOps Toolkit: Kubernetes Chaos Engineering
The DevOps Toolkit: Kubernetes Chaos Engineering
$20.00
Minimum price
$25.00
Suggested price
The DevOps Toolkit: Kubernetes Chaos Engineering

This book is 100% complete

Completed on 2020-04-25

About the Book

There are very few things as satisfying as destruction, especially when we're frustrated.

How often did it happen that you have an issue that you cannot solve and that you just want to scream or destroy things? Did you ever have a problem in production that is negatively affecting a lot of users? Were you under a lot of pressure to solve it, but you could not "crack" it as fast as you should. It must have happened, at least once, that you wanted to take a hammer and destroy servers in your datacenter. If something like that never happened to you, then you were probably never in a position under a lot of pressure. In my case, there were countless times when I wanted to destroy things. But I didn't, for quite a few reasons. Destruction rarely solves problems, and it usually leads to negative consequences. I cannot just go and destroy a server and expect that I will not be punished. I cannot hope to be rewarded for such behavior.

What would you say if I tell you that we can be rewarded for destruction and that we can do a lot of good things by destroying stuff? If you don't believe me, you will soon. That's what chaos engineering is about. It is about destroying, obstructing, and delaying things in our servers and in our clusters. And we're doing all that, and many other things, for a very positive outcome.

Chaos engineering tries to find the limits of our system. It helps us deduce what are the consequences when bad things happen. We are trying to simulate the adverse effects in a controlled way. We are trying to do that as a way to improve our systems to make them more resilient and capable of recuperating and resisting harmful and unpredictable events.

That's our mission. We will try to find ways how we can improve our systems based on the knowledge that we will obtain through the chaos.

About the Authors

Viktor Farcic
Viktor Farcic

Viktor Farcic is a Developer Advocate at CloudBees and a member of the Docker Captains group.

His big passions are Microservices, Continuous Deployment and Test-Driven Development (TDD).

He often speaks at community gatherings and conferences.

Table of Contents

  • Introduction To Kubernetes Chaos Engineering
    • Who Are We?
    • Principles Of Chaos Engineering
    • Are You Ready For Chaos?
    • Examples Of Chaos Engineering
    • The Principles And The Process
    • Chaos Experiments Checklist
    • How Is The Book Organized?
    • Off We Go
  • The Requirements Guiding The Choice Of A Tool
    • Which Tool Should We Choose?
  • Defining Course Requirements
    • Installing Chaos Toolkit
  • Destroying Application Instances
    • Gist With Commands
    • Creating A Cluster
    • Deploying The Application
    • Discovering Chaos Toolkit Kubernetes Plugin
    • Terminating Application Instances
    • Defining The Steady-State Hypothesis
    • Pausing After Actions
    • Probing Phases And Conditions
    • Making The Application Fault-Tolerant
    • Destroying What We Created
  • Experimenting With Application Availability
    • Gist With Commands
    • Creating A Cluster
    • Deploying The Application
    • Validating The Application
    • Validating Application Health
    • Validating Application Availability
    • Terminating Application Dependencies
    • Destroying What We Created
  • Obstructing And Destroying Network
    • Gist With The Commands
    • Creating A Cluster
    • Installing Istio Service Mesh
    • Deploying The Application
    • Discovering Chaos Toolkit Istio Plugin
    • Aborting Network Requests
    • Rolling Back Abort Failures
    • Making The Application Resilient To Partial Network Failures
    • Increasing Network Latency
    • Aborting All Requests
    • Simulating Denial Of Service Attacks
    • Running Denial Of Service Attacks
    • Destroying What We Created
  • Draining And Deleting Nodes
    • Gist With The Commands
    • Creating A Cluster
    • Deploying The Application
    • Draining Worker Nodes
    • Uncordoning Worker Nodes
    • Making Nodes Drainable
    • Deleting Worker Nodes
    • Destroying Cluster Zones
    • Destroying What We Created
  • Creating Chaos Experiment Reports
    • Gist With The Commands
    • Creating A Cluster
    • Deploying The Application
    • Exploring Experiments Journal
    • Creating Experiment Report
    • Creating A Multi-Experiment Report
    • Destroying What We Created
  • Running Chaos Experiments Inside A Kubernetes Cluster
    • Gist With The Commands
    • Creating A Cluster
    • Deploying The Application
    • Setting Up Chaos Toolkit In Kubernetes
    • Types Of Experiment Executions
    • Running One-Shot Experiments
    • Running Scheduled Experiments
    • Running Failed Scheduled Experiments
    • Sending Experiment Notifications
    • Sending Selective Notifications
    • Destroying What We Created
  • Executing Random Chaos
    • Gist with the commands
    • Creating A Cluster
    • Deploying The Application
    • Deploying Dashboard Applications
    • Exploring Grafana Dashboards
    • Exploring Kiali Dashboards
    • Preparing For Termination Of Instances
    • Terminating Random Application Instances
    • Disrupting Network Traffic
    • Preparing For Termination Of Nodes
    • Terminating Random Nodes
    • Monitoring And Alerting With Prometheus
    • Destroying What We Created
  • Until The Next Time
  • Shameless Plug

Authors have earned$9,205,804writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

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

See full terms

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), EPUB (for phones and tablets) and MOBI (for 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. It really is that easy.

Learn more about writing on Leanpub