Set up the development environment

    • golang version >= v1.13
    • gcc
    • version >= v2.8.2
    • nodejs and (for Chaos Dashboard)

    Make sure you have the above prerequisites met. Now follow the steps below to prepare the toolchain for compiling Chaos Mesh:

    1. Clone the Chaos Mesh repo to your local machine.

    2. Install the Kubernetes API development framework - kubebuilder and .

    3. Make sure ${GOPATH}/bin is in your PATH.

    4. Check nodejs related environment.

      1. yarn -v

    Now you can test the toolchain by running:

    With the toolchain ready, you still need a local Kubernetes cluster as the deployment environment. Because kind is already installed, you can now set up the Kubernetes cluster directly:

    The above script will create a Kubernetes cluster by kind. When you don’t need this cluster, you can run the following command to delete it:

    1. kind delete cluster --name=kind