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

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