Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.92 KB

README.md

File metadata and controls

64 lines (49 loc) · 1.92 KB

litmus-recipes

This repo can be used from basic local setup of litmus to Makefiles for testing the changes.

I'm using minikube for running a local cluster

Installation of Litmus with frontend

For running whole litmus i.e all the components from operator to frontend you can refer to the docs. but here are some of the steps:

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-release bitnami/mongodb --values deploy/mongo-vaules.yml -n litmus --create-namespace
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/mkdocs/docs/3.0.0/litmus-cluster-scope-3.0.0.yaml

Installtion of Litmus for testing the experiments/changes/components

This section can be used for testing the changes in the some of the components like operator, exporter, runner. These steps are taken from the operator's repo

Applying the RBACs

k apply -f deploy/rbac.yaml -n litmus

Installing crds

k apply -f deploy/chaos_crds.yaml

Verifying

 k get crds | grep 'litmus'
chaosengines.litmuschaos.io       2023-12-15T22:57:53Z
chaosexperiments.litmuschaos.io   2023-12-15T22:57:53Z
chaosresults.litmuschaos.io       2023-12-15T22:57:53Z

Installing Operator

Operator is needed for running the experiments/runner

k apply -f deploy/operator.yaml

A Operator Pod should show. Check it by running:

k get po -n litmus

Installing a dummy application

While using the experiments, we need a dummy application, for now I'm just using a nginx app.(Please check the labels, namespace of your app,and litmus components)

k apply -f deploy/app.yaml

A nginx pod should show up.

Running experiments

Please refer to experiment directory for installing and running the specific experiment