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.
Step 1: Set up the Kubernetes environment
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
Install helm:curl https://raw.githubusercontent.com/helm/helm/master/scripts/get | bashhelm init
Check whether the helm tiller pod is running:kubectl -n kube-system get pods -l app=helm
Step 2: Install Chaos Mesh
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 your installation
Verify if the chaos mesh is running
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.