The DevOps Toolkit: Kubernetes Chaos Engineering

Retired

This book is no longer available for sale.

The DevOps Toolkit: Kubernetes Chaos Engineering

Kubernetes Chaos Engineering With Chaos Toolkit And Istio

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 lead rapscallion at Upbound, a member of the CNCF AmbassadorsGoogle Developer Experts, CDF Ambassadors, and GitHub Stars groups, and a published author.

He is a host of the YouTube channel DevOps Toolkit and a co-host of DevOps Paradox.

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

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...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

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

In fact, authors have earnedover $13 millionwriting, 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