Adding random regex pod kill

This commit is contained in:
prubenda
2020-05-17 18:08:17 -04:00
committed by Naga Ravi Chaitanya Elluri
parent 07db8f4690
commit 44e753867f
3 changed files with 23 additions and 2 deletions

View File

@@ -2,8 +2,9 @@ kraken:
kubeconfig_path: /root/.kube/config # Path to kubeconfig
scenarios: # List of policies/chaos scenarios to load
- scenarios/etcd.yml
- scenarios/openshift-kube-apiserver.yml
- scenarios/openshift-kube-apiserver.yml
- scenarios/openshift-apiserver.yml
- scenarios/regex_openshift_pod_kill.yml
cerberus:
cerberus_enabled: False # Enable it when cerberus is previously installed

View File

@@ -1,4 +1,4 @@
datetime
pyfiglet
powerfulseal==3.0.0rc9
git+https://github.com/bloomberg/powerfulseal.git@master
requests

View File

@@ -0,0 +1,20 @@
config:
runStrategy:
runs: 1
maxSecondsBetweenRuns: 30
minSecondsBetweenRuns: 1
scenarios:
- name: kill up to 3 pods in any openshift namespace
steps:
- podAction:
matches:
- namespace: "openshift-.*"
filters:
- property:
name: "state"
value: "Running"
- randomSample:
size: 3
actions:
- kill:
probability: .7