The DevOps Toolkit: Kubernetes Chaos Engineering

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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.

Author(s): Viktor Farcic, Darin Pope
Series: The DevOps Toolkit
Edition: 1 (2020.11.09)
Publisher: Leanpub
Year: 2020

Language: English
Commentary: Vector PDF
Pages: 190
Tags: DevOps; Best Practices; Kubernetes

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