The Litmus Chaos Engineering tool can be installed using the Helm chart. Books are defined as Kubernetes jobs.
Let's perform the following steps to install Litmus in our cluster:
- Install the Litmus Chaos Operator:
$ kubectl apply -f https://litmuschaos.github.io/pages/litmus-operator-latest.yaml
- Verify that the Litmus Chaos Operator pod is running:
$ kubectl get pods -n litmus
NAME READY STATUS RESTARTS AGE
chaos-operator-ce-554d6c8f9f-46kf6 1/1 Running 0 50s
- Verify that the cluster role and cluster role bindings have been applied:
$ kubectl get clusterroles,clusterrolebinding,crds | grep "litmus|chaos"
Now, we have the Litmus Chaos Operator running in our cluster. Next, we need to deploy chaos experiments to test the resiliency of our cluster resources.