1.4 KiB
1.4 KiB
Get Started with Litmus SDK
Introduction
The Litmus SDK provides a simple way to bootstrap your experiment and helps create the aforementioned artifacts in the appropriate directory (i.e., as per the chaos-category) based on an attributes file provided as input by the chart-developer. The scaffolded files consist of placeholders which can then be filled as desired.
It generates the custom chaos experiments with some default Pre & Post Chaos Checks (AUT & Auxiliary Applications status checks). It can use the existing chaoslib (present inside /chaoslib directory), if available else It will create a new chaoslib inside the corresponding directory.
Demo Recording
UseCase: Create a pod cpu stress experiment, which execs inside the target pod and run md5sum command
Steps:
- Clone the litmus-go repository and navigate to the contribute/developer-guide directory 0:23-0:40
- Generate experiment code 0:41-2:51
- Add stead-state checks and experiment business logic 2:52-5:17
- Build go-runner image 5:18-6:30
- Create charts and add them inside the chaos-charts repo 6:32-10:25
- Create a new chaos hub 10:27-12:03
- Run the experiment 12:04-18:03