Get started on kind

This document describes how to deploy Chaos Mesh in Kubernetes on your laptop (Linux or macOS) using kind.

Prerequisites

Before deployment, make sure Docker is installed and running on your local machine.

Install Chaos Mesh

  1. curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind

install.sh is an automation shell script that helps you install dependencies such as kubectl, helm, kind, and kubernetes, and deploy Chaos Mesh itself.

After executing the above command, you need to verify if the Chaos Mesh is installed correctly.

You also can use helm to install Chaos Mesh manually.

Verify your installation

Verify if Chaos Mesh is running

  1. kubectl get pod -n chaos-testing

Expected output:

  1. NAME READY STATUS RESTARTS AGE
  2. chaos-controller-manager-6d6d95cd94-kl8gs 1/1 Running 0 3m40s
  3. chaos-daemon-5shkv 1/1 Running 0 3m40s
  4. chaos-dashboard-d998856f6-vgrjs 1/1 Running 0 3m40s

Run Chaos experiment

Now that you have deployed Chaos Mesh in your environment, it’s time to use it for your chaos experiments. Follow the steps in Run chaos experiment to run a Chaos experiment and then observe it on Chaos Mesh Dashboard.

Uninstallation

  1. curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -

In addition, you also can uninstall Chaos Mesh by deleting the namespace directly.

  1. kubectl delete ns chaos-testing

Clean kind cluster

  1. kind delete cluster --name=kind