chore(check): Add option for custom kill command in CPU and Memory hog (#348)

Signed-off-by: Udit Gaurav <udit.gaurav@mayadata.io>
This commit is contained in:
UDIT GAURAV
2020-10-15 12:30:37 +05:30
committed by GitHub
parent 0a552fca6c
commit a0f19878a3
2 changed files with 9 additions and 0 deletions

View File

@@ -68,6 +68,12 @@ spec:
- name: TARGET_POD
value: ''
- name: CHAOS_INJECT_COMMAND
value: 'md5sum /dev/zero'
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')"
## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel
- name: SEQUENCE

View File

@@ -64,6 +64,9 @@ spec:
## It is used in pumba lib only
- name: LIB_IMAGE
value: 'gaiaadm/pumba'
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')"
## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel