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:
@@ -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
|
||||
|
@@ -65,6 +65,9 @@ spec:
|
||||
- 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
|
||||
- name: SEQUENCE
|
||||
|
Reference in New Issue
Block a user