Getting Started with Krkn-hub
Categories:
Adding/Editing a New Scenario to Krkn-hub
Create folder with scenario name under krkn-hub
Create generic scenario template with enviornment variables
a. See scenario.yaml for example
b. Almost all parameters should be set using a variable (these will be set in the env.sh file or through the command line environment variables)
Add defaults for any environment variables in an “env.sh” file
a. See env.sh for example
Create script to run.sh chaos scenario a. See run.sh for example
b. edit line 16 with your scenario yaml template
c. edit line 17 and 23 with your yaml config location
Create Dockerfile template
a. See dockerfile template for example
b. Lines to edit
i. 12: replace "application-outages" with your folder name ii. 14: replace "application-outages" with your folder name iii. 17: replace "application-outages" with your scenario name iv. 18: replace description with a description of your new scenario
Add service/scenario to docker-compose.yaml file following syntax of other services
Point the dockerfile parameter in your docker-compose to the Dockerfile file in your new folder
Add the folder name to the list of scenarios in build.sh
Update the krkn website and main README with new scenario type
NOTE:
- If you added any main configuration variables or new sections be sure to update config.yaml.template
- Similar to above, also add the default parameter values to env.sh