## Getting Started Running Chaos Scenarios #### Adding New Scenarios Adding a new scenario is as simple as adding a new config file under [scenarios directory](https://github.com/redhat-chaos/krkn/tree/main/scenarios) and defining it in the main kraken [config](https://github.com/redhat-chaos/krkn/blob/main/config/config.yaml#L8). You can either copy an existing yaml file and make it your own, or fill in one of the templates below to suit your needs. ### Templates #### Pod Scenario Yaml Template For example, for adding a pod level scenario for a new application, refer to the sample scenario below to know what fields are necessary and what to add in each location: ``` # yaml-language-server: $schema=../plugin.schema.json - id: kill-pods config: namespace_pattern: ^$ label_selector: kill: - id: wait-for-pods config: namespace_pattern: ^$ label_selector: count: ``` #### Node Scenario Yaml Template ``` node_scenarios: - actions: # Node chaos scenarios to be injected. - - node_name: # Can be left blank. label_selector: instance_kill_count: timeout: cloud_type: ``` #### Time Chaos Scenario Template ``` time_scenarios: - action: 'skew_time' or 'skew_date' object_type: 'pod' or 'node' label_selector: