Setting up Chaos Toolkit in Kubernetes

In this lesson, we set up Chaos Toolkit in Kubernetes by defining configurations using ConfigMap and creating a ServiceAccount.

Defining configuration in Kubernetes using the ConfigMap

Before we start running chaos experiments inside the Kubernetes cluster, we’ll need to set up at least two things:

  1. We’ll need experiment definitions stored somewhere in the cluster. The most common and the most logical way to define a configuration in Kubernetes is to use ConfigMap.
  2. Apart from having experiment definitions readily available, we will also need to create a ServiceAccount that will provide the necessary privileges to processes that will run the experiments.

Inspecting the definition of ConfigMap

Let’s start with the ConfigMap.

Get hands-on with 1400+ tech skills courses.