mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-02-14 18:10:00 +00:00
Adding random regex pod kill
This commit is contained in:
committed by
Naga Ravi Chaitanya Elluri
parent
07db8f4690
commit
44e753867f
20
scenarios/regex_openshift_pod_kill.yml
Normal file
20
scenarios/regex_openshift_pod_kill.yml
Normal 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
|
||||
Reference in New Issue
Block a user