Krknctl All Scenarios Variables

These variables are to be used for the top level configuration template that are shared by all the scenarios in Krknctl.

Each section below corresponds to a section in the Krkn config reference. Pass flags when running a scenario:

krknctl run <scenario> --<parameter> <value>

Kraken

General run settings. See Kraken config for full details.

ParameterDescriptionTypePossible ValuesDefault
--krkn-kubeconfigSets the path where krkn will search for kubeconfig in containerstring-/home/krkn/.kube/config
--uuidSets krkn run uuid instead of generating itstring--
--krkn-debugEnables debug mode for KrknenumTrue/FalseFalse

Cerberus

Cluster health monitoring integration. See Cerberus config for full details.

ParameterDescriptionTypePossible ValuesDefault
--cerberus-enabledEnables Cerberus SupportenumTrue/FalseFalse
--cerberus-urlCerberus http urlstring-http://0.0.0.0:8080

Performance Monitoring

Prometheus metrics collection and alert evaluation. See Performance Monitoring config for full details.

ParameterDescriptionTypePossible ValuesDefault
--capture-metricsEnables metrics captureenumTrue/FalseFalse
--enable-alertsEnables cluster alerts checkenumTrue/FalseFalse
--alerts-pathAllows to specify a different alert file pathstring-config/alerts.yaml
--metrics-pathAllows to specify a different metrics file pathstring-config/metrics-aggregated.yaml
--check-critical-alertsEnables checking for critical alertsenumTrue/FalseFalse

Resiliency Score

Resiliency scoring configuration. See Resiliency Score config for full details.

ParameterDescriptionTypePossible ValuesDefault
--resiliency-scoreEnables resiliency scoring in detailed mode, outputting a full JSON resiliency report to stdout after each scenarioenumTrue/FalseFalse
--disable-resiliency-scoreDisables resiliency score calculation entirelyenumTrue/FalseFalse
--resiliency-filePath to a YAML file containing SLO definitions for resiliency scoring; defaults to the alerts profile or config/alerts.yamlstring-config/alerts.yaml

Elastic

Elasticsearch storage for telemetry and metrics. See Elastic config for full details.

ParameterDescriptionTypePossible ValuesDefault
--enable-esEnables elastic search data collectionenumTrue/FalseFalse
--es-serverElasticsearch instance URLstring-http://0.0.0.0
--es-portElasticsearch instance portnumber-443
--es-usernameElasticsearch instance usernamestring-elastic
--es-passwordElasticsearch instance passwordstring--
--es-verify-certsEnables elasticsearch TLS certificate verificationenumTrue/FalseFalse
--es-metrics-indexIndex name for metrics in Elasticsearchstring-krkn-metrics
--es-alerts-indexIndex name for alerts in Elasticsearchstring-krkn-alerts
--es-telemetry-indexIndex name for telemetry in Elasticsearchstring-krkn-telemetry

Tunings

Execution timing and iteration controls. See Tunings config for full details.

ParameterDescriptionTypePossible ValuesDefault
--wait-durationWaits for a certain amount of time after the scenarionumber-1
--iterationsNumber of times the same chaos scenario will be executednumber-1
--daemon-modeIf set the scenario will execute foreverenumTrue/FalseFalse

Telemetry

Run data collection and upload settings. See Telemetry config for full details.

ParameterDescriptionTypePossible ValuesDefault
--telemetry-enabledEnables telemetry supportenumTrue/FalseFalse
--telemetry-api-urlAPI endpoint for telemetry datastring-https://ulnmf9xv7j.execute-api.us-west-2.amazonaws.com/production
--telemetry-usernameUsername for telemetry authenticationstring-redhat-chaos
--telemetry-passwordPassword for telemetry authenticationstring--
--telemetry-prometheus-backupEnables Prometheus backup for telemetryenumTrue/FalseTrue
--telemetry-full-prometheus-backupEnables full Prometheus backup for telemetryenumTrue/FalseFalse
--telemetry-backup-threadsNumber of threads for telemetry backupnumber-5
--telemetry-archive-pathPath to save telemetry archivestring-/tmp
--telemetry-max-retriesMaximum retries for telemetry operationsnumber-0
--telemetry-run-tagTag for telemetry runstring-chaos
--telemetry-groupGroup name for telemetry datastring-default
--telemetry-archive-sizeMaximum size for telemetry archives in KBnumber-1000
--telemetry-logs-backupEnables logs backup for telemetryenumTrue/FalseFalse
--telemetry-filter-patternFilter pattern for telemetry logsstring-["\\w{3}\\s\\d{1,2}\\s\\d{2}:\\d{2}:\\d{2}\\.\\d+", ...]
--telemetry-cli-pathPath to telemetry CLI tool (oc)string--
--telemetry-events-backupEnables events backup for telemetryenumTrue/FalseTrue

Health Checks

Application endpoint monitoring during chaos. See Health Checks config for full details.

ParameterDescriptionTypePossible ValuesDefault
--health-check-urlURL to check the health ofstring--
--health-check-intervalHow often to check the health check urls (seconds)number-2
--health-check-authAuthentication tuple to authenticate into health check URLstring--
--health-check-bearer-tokenBearer token to authenticate into health check URLstring--
--health-check-exitExit on failure when health check URL is not able to connectstring--
--health-check-verifySSL verification for health check URLstring-false

Virt Checks

KubeVirt VMI SSH connection monitoring during chaos. See Virt Checks config for full details.

ParameterDescriptionTypePossible ValuesDefault
--kubevirt-check-intervalHow often to check the KubeVirt VMs SSH status (seconds)number-2
--kubevirt-namespaceKubeVirt namespace to check the health ofstring--
--kubevirt-nameKubeVirt regex names to watchstring--
--kubevirt-only-failuresKubeVirt checks only report if failure occursenumTrue/Falsefalse
--kubevirt-disconnectedKubeVirt checks in disconnected mode, bypassing the cluster’s APIenumTrue/Falsefalse
--kubevirt-ssh-nodeKubeVirt backup node to SSH into when checking VMI IP address statusstring-false
--kubevirt-exit-on-failureKubeVirt fails run if VMs still have false statusenumTrue/Falsefalse
--kubevirt-node-nodeOnly track VMs in KubeVirt on given node namestring-false