Node Scenarios using Krknctl
krknctl run node-scenarios (optional: --<parameter>:<value> )
Can also set any global variable listed here
Scenario specific parameters: (be sure to scroll to right)
| Parameter | Description | Type | Default | Possible Values |
|---|---|---|---|---|
| action performed on the node, visit https://github.com/krkn-chaos/krkn/blob/main/docs/node_scenarios.md for more infos | enum | node_start_scenario,node_stop_scenario,node_stop_start_scenario,node_termination_scenario,node_reboot_scenario,stop_kubelet_scenario,stop_start_kubelet_scenario,restart_kubelet_scenario,node_crash_scenario,stop_start_helper_node_scenario | ||
| Node label to target | string | node-role.kubernetes.io/worker | ||
| excludes nodes marked by this label from chaos | ||||
| Node name to inject faults in case of targeting a specific node; Can set multiple node names separated by a comma | string | |||
| Targeted instance count matching the label selector | number | 1 | ||
| Iterations to perform action on a single node | number | 1 | ||
| Cloud platform on top of which cluster is running, supported platforms - aws, azure, gcp, vmware, ibmcloud, bm | enum | aws | ||
| Connecting to the kubernetes api to check the node status, set to False for SNO | enum | true | ||
| Duration to wait for completion of node scenario injection | number | 180 | ||
| Duration to wait for completion of node scenario injection | number | 120 | ||
| VSpere IP Address | string | |||
| VSpere IP Address | string (secret) | |||
| VSpere password | string (secret) | |||
| AWS Access Key Id | string (secret) | |||
| AWS Secret Access Key | string (secret) | |||
| AWS default region | string | |||
| Only needed for Baremetal ( bm ) - IPMI/bmc username | string(secret) | |||
| Only needed for Baremetal ( bm ) - IPMI/bmc password | string(secret) | |||
| Only needed for Baremetal ( bm ) - IPMI/bmc address | string | |||
| IBM Cloud URL | string | |||
| IBM Cloud API Key | string (secret) | |||
| IBM Power Cloud URL | string | |||
| IBM Cloud Power Workspace CNR | string | |||
| Disable SSL verification, to avoid certificate errors | enum | false | ||
| Azure Tenant | string | |||
| Azure Client Secret | string(secret) | |||
| Azure Client ID | string(secret) | |||
| Azure Subscription ID | string (secret) | |||
| GCP application credentials file location | file |
NOTE: The secret string types will be masked when scenario is ran
To see all available scenario options
krknctl run node-scenarios --help