## 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/cloud-bulldozer/kraken/tree/master/scenarios) and defining it in the main kraken [config](https://github.com/cloud-bulldozer/kraken/blob/master/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: ``` config: runStrategy: runs: #This will choose a random number to wait between min and max maxSecondsBetweenRuns: 30 minSecondsBetweenRuns: 1 scenarios: - name: "delete pods example" steps: - podAction: matches: - labels: namespace: "" selector: "" #this can be left blank filters: - randomSample: size: actions: - kill: probability: 1 force: true - podAction: matches: - labels: namespace: "" selector: "" #this can be left blank retries: retriesTimeout: # Amount of time to wait with retrying, before failing if pod count doesn't match expected timeout: 180 actions: - checkPodCount: count: - 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: