This document describes how to deploy Chaos Mesh in Kubernetes on your laptop (Linux or macOS) using Minikube.
Before deployment, make sure Minikube is installed on your local machine.
Perform the following steps to set up the local Kubernetes environment:
Start a Kubernetes cluster:minikube start --kubernetes-version v1.15.0 --cpus 4 --memory "8192mb"
It is recommended to allocate enough RAM (more than 8192 MiB) to the Virtual Machine (VM) using the
Following helm installation steps: https://helm.sh/docs/intro/install
The above command installs all the CRDs, required service account configuration, and all components. Before you start running a chaos experiment, verify if Chaos Mesh is installed correctly.
Verify if Chaos Mesh is running
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.
You can uninstall Chaos Mesh by deleting the namespace.
There are some known restrictions for Chaos Operator deployed in the Minikube cluster:
netem chaosis only supported for Minikube clusters >= version 1.6.
In Minikube, the default virtual machine driver's image does not contain the
sch_netem kernel module in earlier versions. You can use
none driver (if your host is Linux with the
sch_netem kernel module loaded) to try these chaos actions using Minikube or build an image with sch_netem by yourself.