-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paige Patton <[email protected]>
- Loading branch information
1 parent
278f3ff
commit 4568f2f
Showing
5 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
#!/bin/bash | ||
export SCENARIO_CONFIG_FILE="$KRAKEN_FOLDER/scenarios/kube/syn_flood_config.yaml" | ||
export PACKET_SIZE=${PACKET_SIZE:="120"} | ||
export WINDOW_SIZE=${WINDOW_SIZE:="64"} | ||
export TOTAL_CHAOS_DURATION=${TOTAL_CHAOS_DURATION:="120"} | ||
export NAMESPACE=${NAMESPACE:="default"} | ||
export TARGET_SERVICE=${TARGET_SERVICE} | ||
export TARGET_PORT=${TARGET_PORT} | ||
export TARGET_SERVICE_LABEL=${TARGET_SERVICE_LABEL} | ||
export TARGET_SERVICE=${TARGET_SERVICE:=""} | ||
export TARGET_PORT=${TARGET_PORT:=443} | ||
export TARGET_SERVICE_LABEL=${TARGET_SERVICE_LABEL:=""} | ||
export NUMBER_OF_PODS=${NUMBER_OF_PODS:="2"} | ||
export IMAGE=${IMAGE:="quay.io/krkn-chaos/krkn-syn-flood"} | ||
export NODE_SELECTORS=${NODE_SELECTORS:=""} | ||
|
||
export SCENARIO_TYPE=${SCENARIO_TYPE:=syn_flood_scenarios} | ||
export SCENARIO_FILE=${SCENARIO_FILE:=$SCENARIO_CONFIG_FILE} | ||
export SCENARIO_FILE=${SCENARIO_FILE:="$KRAKEN_FOLDER/scenarios/syn-flood.yaml"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
packet-size: ${PACKET_SIZE} | ||
window-size: ${WINDOW_SIZE} # hping 3 TCP window size | ||
duration: ${TOTAL_CHAOS_DURATION} # chaos scenario duration | ||
namespace: ${NAMESPACE} # namespace where the target service(s) are deployed | ||
target-service: ${TARGET_SERVICE} # target service name (if set target-service-label must be empty) | ||
target-port: ${TARGET_PORT} # target service TCP port | ||
target-service-label : ${TARGET_SERVICE_LABEL} # target service label, can be used to target multiple target at the same time | ||
# if they have the same label set (if set target-service must be empty) | ||
number-of-pods: ${NUMBER_OF_PODS} # number of attacker pod instantiated per each target | ||
image: quay.io/krkn-chaos/krkn-syn-flood:v1.0.0 # syn flood attacker container image | ||
attacker-nodes: # this will set the node affinity to schedule the attacker node. Per each node label selector | ||
node-role.kubernetes.io/worker: # can be specified multiple values in this way the kube scheduler will schedule the attacker pods | ||
- "" # in the best way possible based on the provided labels. Multiple labels can be specified | ||
# set empty value `attacker-nodes: {}` to let kubernetes schedule the pods | ||
|
||
|