diff --git a/mkdocs/docs/experiments/categories/pods/pod-cpu-hog-exec.md b/mkdocs/docs/experiments/categories/pods/pod-cpu-hog-exec.md index 29ddf3786df..3238dde16a2 100644 --- a/mkdocs/docs/experiments/categories/pods/pod-cpu-hog-exec.md +++ b/mkdocs/docs/experiments/categories/pods/pod-cpu-hog-exec.md @@ -166,7 +166,7 @@ CHAOS_KILL_COMMAND The command to kill the chaos process - Default to kill $(find /proc -name exe -lname '*/md5sum' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}'). Another useful one that generally works (in case the default doesn't) is kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' '). In case neither works, please check whether the target pod's base image offers a shell. If yes, identify appropriate shell command to kill the chaos process + Default to kill $(find /proc -name exe -lname '*/md5sum' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}'). Another useful one that generally works (in case the default doesn't) is kill -9 $(ps afx | grep "[md5sum] /dev/zero" | awk '{print $1}' | tr '\n' ' '). In case neither works, please check whether the target pod's base image offers a shell. If yes, identify appropriate shell command to kill the chaos process RAMP_TIME @@ -253,7 +253,7 @@ spec: - name: CHAOS_INJECT_COMMAND value: 'md5sum /dev/zero' # command to kill the md5sum process - # alternative command: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')" + # alternative command: "kill -9 $(ps afx | grep "[md5sum] /dev/zero" | awk '{print $1}' | tr '\n' ' ')" - name: CHAOS_KILL_COMMAND value: "kill $(find /proc -name exe -lname '*/md5sum' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}')" - name: TOTAL_CHAOS_DURATION diff --git a/mkdocs/docs/experiments/categories/pods/pod-memory-hog-exec.md b/mkdocs/docs/experiments/categories/pods/pod-memory-hog-exec.md index d4246b87b81..292e36be25b 100644 --- a/mkdocs/docs/experiments/categories/pods/pod-memory-hog-exec.md +++ b/mkdocs/docs/experiments/categories/pods/pod-memory-hog-exec.md @@ -155,7 +155,7 @@ CHAOS_KILL_COMMAND The command to kill the chaos process - Defaults to kill $(find /proc -name exe -lname '*/dd' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}' | head -n 1). Another useful one that generally works (in case the default doesn't) is kill -9 $(ps afx | grep \"[dd] if=/dev/zero\" | awk '{print $1}' | tr '\n' ' '). In case neither works, please check whether the target pod's base image offers a shell. If yes, identify appropriate shell command to kill the chaos process + Defaults to kill $(find /proc -name exe -lname '*/dd' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}' | head -n 1). Another useful one that generally works (in case the default doesn't) is kill -9 $(ps afx | grep "[dd] if=/dev/zero" | awk '{print $1}' | tr '\n' ' '). In case neither works, please check whether the target pod's base image offers a shell. If yes, identify appropriate shell command to kill the chaos process PODS_AFFECTED_PERC @@ -245,7 +245,7 @@ spec: components: env: # command to kill the dd process - # alternative command: "kill -9 $(ps afx | grep \"[dd] if=/dev/zero\" | awk '{print $1}' | tr '\n' ' ')" + # alternative command: "kill -9 $(ps afx | grep "[dd] if=/dev/zero" | awk '{print $1}' | tr '\n' ' ')" - name: CHAOS_KILL_COMMAND value: "kill $(find /proc -name exe -lname '*/dd' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}' | head -n 1)" - name: TOTAL_CHAOS_DURATION