Skip to content

Recipes for running chaos in your infra with LitmusChaos

Notifications You must be signed in to change notification settings

Nageshbansal/litmus-recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Recipes for running chaos in your infra with LitmusChaos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published