Skip to main content
版本:1.1.4

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

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

kubectl get pod -n chaos-testing

Expected output:

NAME                                        READY   STATUS    RESTARTS   AGE
chaos-controller-manager-6d6d95cd94-kl8gs 1/1 Running 0 3m40s
chaos-daemon-5shkv 1/1 Running 0 3m40s
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

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

kubectl delete ns chaos-testing

Clean kind cluster

kind delete cluster --name=kind