Skip to content

Commit

Permalink
Merge branch 'krkn-chaos:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani authored Nov 26, 2024
2 parents c14c1dd + 3973fc2 commit fb0f85b
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion application-outages/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source /home/krkn/env.sh
source /home/krkn/common_run.sh


if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
ls -la /home/krkn/.kube
fi
Expand Down
4 changes: 2 additions & 2 deletions container-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand All @@ -20,7 +20,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
# Run Kraken
cd /home/krkn/kraken

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat config/container_scenario_config.yaml
cat scenarios/container_scenario.yaml
fi
Expand Down
2 changes: 1 addition & 1 deletion docs/all_scenarios_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ TELEMETRY_FILTER_PATTER | Filter logs based on certain time stamp patterns |["(\
TELEMETRY_CLI_PATH | OC Cli path, if not specified will be search in $PATH | _blank_ |
ELASTIC_SERVER | Be able to track telemtry data in elasticsearch, this is the url of the elasticsearch data storage | _blank_ |
ELASTIC_INDEX | Elastic search index pattern to post results to | _blank_ |
DEBUG| If set to "True" enables krkn Verbose output | "False" |
KRKN_DEBUG| If set to "True" enables krkn Verbose output | "False" |

**NOTE**: For setting the TELEMETRY_ARCHIVE_SIZE,the higher the number of archive files will be produced and uploaded (and processed by backup_thread simultaneously).For unstable/slow connection is better to keep this value low increasing the number of backup_threads, in this way, on upload failure, the retry will happen only on the failed chunk without affecting the whole upload.
2 changes: 1 addition & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ export TELEMETRY_EVENTS_BACKUP=${TELEMETRY_EVENTS_BACKUP:=True}

# Set KUBECONFIG to mounted kubeconfig
export KUBECONFIG=${KRKN_KUBE_CONFIG}
export DEBUG=${DEBUG:="False"}
export KRKN_DEBUG=${KRKN_DEBUG:="False"}
2 changes: 1 addition & 1 deletion network-chaos/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
ls -la /home/krkn/.kube
fi
Expand Down
4 changes: 2 additions & 2 deletions node-cpu-hog/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh
source $ROOT_FOLDER/env.sh
source $ROOT_FOLDER/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand All @@ -22,7 +22,7 @@ config_setup
# Run Kraken
cd $KRAKEN_FOLDER

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat scenarios/kube/cpu-hog/input.yaml
cat config/cpu_config.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions node-io-hog/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh
source $ROOT_FOLDER/env.sh
source $ROOT_FOLDER/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand All @@ -22,7 +22,7 @@ config_setup
# Run Kraken
cd $KRAKEN_FOLDER

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat config/io_config.yaml
cat scenarios/kube/io-hog/input.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions node-memory-hog/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh
source $ROOT_FOLDER/env.sh
source $ROOT_FOLDER/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand All @@ -24,7 +24,7 @@ config_setup
# Run Kraken
cd $KRAKEN_FOLDER

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat config/mem_config.yaml
cat scenarios/kube/memory-hog/input.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions node-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand Down Expand Up @@ -45,7 +45,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
cd /home/krkn/kraken


if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat config/node_scenario_config.yaml
cat scenarios/node_scenario.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions pod-network-chaos/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
ls -la /home/krkn/.kube
fi
Expand All @@ -25,7 +25,7 @@ fi
# Run Kraken
cd /home/krkn/kraken

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat /home/krkn/kraken/config/pod_network_scenario_config.yaml
cat /home/krkn/kraken/scenarios/pod_network_scenario.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions pod-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
ls -la /home/krkn/.kube
fi
Expand All @@ -24,7 +24,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
cd /home/krkn/kraken


if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat /home/krkn/kraken/config/pod_scenario_config.yaml
cat /home/krkn/kraken/scenarios/pod_scenario.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions power-outages/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand All @@ -18,7 +18,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
# Run Kraken
cd /home/krkn/kraken

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat config/shut_down_config.yaml
cat scenarios/cluster_shut_down_scenario.yml
fi
Expand Down
2 changes: 1 addition & 1 deletion pvc-scenario/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
ls -la /home/krkn/.kube
fi
Expand Down
4 changes: 2 additions & 2 deletions service-disruption-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand All @@ -18,7 +18,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
# Run Kraken
cd /home/krkn/kraken

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat scenarios/namespace_scenario.yaml
cat config/namespace_config.yaml
fi
Expand Down
4 changes: 2 additions & 2 deletions service-hijacking/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand Down Expand Up @@ -36,7 +36,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
# Run Kraken
cd /home/krkn/kraken

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
cat scenarios/service_hijacking.yaml
cat config/service_hijacking_config.yaml
fi
Expand Down
2 changes: 1 addition & 1 deletion syn-flood/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source $ROOT_FOLDER/main_env.sh
source $ROOT_FOLDER/env.sh
source $ROOT_FOLDER/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand Down
2 changes: 1 addition & 1 deletion time-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand Down
2 changes: 1 addition & 1 deletion zone-outages/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
source /home/krkn/env.sh
source /home/krkn/common_run.sh

if [[ $DEBUG == "True" ]];then
if [[ $KRKN_DEBUG == "True" ]];then
set -ex
fi

Expand Down

0 comments on commit fb0f85b

Please sign in to comment.