Set up the development environment
Make sure you have the above prerequisites met. Now follow the steps below to prepare the toolchain for compiling Chaos Mesh:
Clone the Chaos Mesh repo to your local machine.
Install the Kubernetes API development framework - kubebuilder and .
Make sure Docker Regitry is running. Set the environment variable
DOCKER_REGISTRY
with the registry address:echo 'export DOCKER_REGISTRY=localhost:5000' >> ~/.bash_profile
source ~/.bash_profile
```
source ~/.bash_profile
Check nodejs related environment.
node -v
yarn -v
If there is no error in the output, the compiling toolchain is successfully configured.
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:
hack/kind-cluster-build.sh
The above script creates a Kubernetes cluster via Kind. When you are done with it, run the following command to delete it:
Congratulations! You are now all set up for Chaos Mesh development. Try the following tasks: