diff --git a/config/config.yaml b/config/config.yaml index 38c4b723..19fe9a2b 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -20,6 +20,7 @@ kraken: - scenarios/openshift/regex_openshift_pod_kill.yml - scenarios/openshift/vmware_node_scenarios.yml - scenarios/openshift/network_chaos_ingress.yml + - scenarios/openshift/prom_kill.yml - node_scenarios: # List of chaos node scenarios to load - scenarios/openshift/node_scenarios_example.yml - plugin_scenarios: diff --git a/config/config_performance.yaml b/config/config_performance.yaml index 31cd6a89..0c6e28be 100644 --- a/config/config_performance.yaml +++ b/config/config_performance.yaml @@ -13,6 +13,7 @@ kraken: - plugin_scenarios: # List of chaos pod scenarios to load - scenarios/openshift/etcd.yml - scenarios/openshift/regex_openshift_pod_kill.yml + - scenarios/openshift/prom_kill.yml - node_scenarios: # List of chaos node scenarios to load - scenarios/openshift/node_scenarios_example.yml - plugin_scenarios: diff --git a/scenarios/openshift/prom_kill.yml b/scenarios/openshift/prom_kill.yml new file mode 100644 index 00000000..8186440d --- /dev/null +++ b/scenarios/openshift/prom_kill.yml @@ -0,0 +1,9 @@ +- id: kill-pods + config: + namespace_pattern: ^openshift-monitoring$ + label_selector: statefulset.kubernetes.io/pod-name=prometheus-k8s-0 +- id: wait-for-pods + config: + namespace_pattern: ^openshift-monitoring$ + label_selector: statefulset.kubernetes.io/pod-name=prometheus-k8s-0 + count: 1 \ No newline at end of file