chore(env): Adding required env inside chaosengine (#479)
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
This commit is contained in:
committed by
GitHub
parent
b170f84c4d
commit
a5af71f24a
@@ -27,3 +27,36 @@ spec:
|
|||||||
# provide the region name of the target instances
|
# provide the region name of the target instances
|
||||||
- name: REGION
|
- name: REGION
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
|
# provide the percentage of available memory to stress
|
||||||
|
- name: MEMORY_PERCENTAGE
|
||||||
|
value: '80'
|
||||||
|
|
||||||
|
# provide the CPU chores to be comsumed
|
||||||
|
# 0 will consume all the available cpu cores
|
||||||
|
- name: CPU_CORE
|
||||||
|
value: '0'
|
||||||
|
|
||||||
|
# Provide the name of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_NAME
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# Provide the type of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_TYPE
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# Provide the format of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_FORMAT
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# Provide the path of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_PATH
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# if you want to install dependencies to run default ssm docs
|
||||||
|
- name: INSTALL_DEPENDENCIES
|
||||||
|
value: 'True'
|
||||||
|
@@ -50,7 +50,6 @@ spec:
|
|||||||
- name: CHAOS_INTERVAL
|
- name: CHAOS_INTERVAL
|
||||||
value: '60'
|
value: '60'
|
||||||
|
|
||||||
|
|
||||||
# Period to wait before and after injection of chaos in sec
|
# Period to wait before and after injection of chaos in sec
|
||||||
- name: RAMP_TIME
|
- name: RAMP_TIME
|
||||||
value: ''
|
value: ''
|
||||||
|
@@ -27,3 +27,36 @@ spec:
|
|||||||
# provide the region name of the target instances
|
# provide the region name of the target instances
|
||||||
- name: REGION
|
- name: REGION
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
|
# provide the percentage of available memory to stress
|
||||||
|
- name: MEMORY_PERCENTAGE
|
||||||
|
value: '80'
|
||||||
|
|
||||||
|
# provide the CPU chores to comsumed
|
||||||
|
# 0 will consume all the available cpu cores
|
||||||
|
- name: CPU_CORE
|
||||||
|
value: '0'
|
||||||
|
|
||||||
|
# Provide the name of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_NAME
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# Provide the type of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_TYPE
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# Provide the format of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_FORMAT
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# Provide the path of ssm doc
|
||||||
|
# if not using the default stress docs
|
||||||
|
- name: DOCUMENT_PATH
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# if you want to install dependencies to run default ssm docs
|
||||||
|
- name: INSTALL_DEPENDENCIES
|
||||||
|
value: 'True'
|
||||||
|
@@ -49,4 +49,7 @@ spec:
|
|||||||
- name: CASSANDRA_LIVENESS_CHECK
|
- name: CASSANDRA_LIVENESS_CHECK
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
@@ -16,14 +16,14 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
# provide the chaos interval
|
|
||||||
- name: CHAOS_INTERVAL
|
|
||||||
value: '10'
|
|
||||||
|
|
||||||
# provide the total chaos duration
|
# provide the total chaos duration
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '20'
|
value: '20'
|
||||||
|
|
||||||
|
# provide the chaos interval
|
||||||
|
- name: CHAOS_INTERVAL
|
||||||
|
value: '10'
|
||||||
|
|
||||||
# provide the name of container runtime
|
# provide the name of container runtime
|
||||||
# for litmus LIB, it supports docker, containerd, crio
|
# for litmus LIB, it supports docker, containerd, crio
|
||||||
# for pumba LIB, it supports docker only
|
# for pumba LIB, it supports docker only
|
||||||
@@ -33,4 +33,10 @@ spec:
|
|||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
- name: TARGET_CONTAINER
|
||||||
|
value: ''
|
||||||
|
|
@@ -20,28 +20,27 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
# specify the name of the container to be killed
|
# provide the total chaos duration
|
||||||
- name: TARGET_CONTAINER
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: 'nginx'
|
value: '20'
|
||||||
|
|
||||||
# provide the chaos interval
|
# provide the chaos interval
|
||||||
- name: CHAOS_INTERVAL
|
- name: CHAOS_INTERVAL
|
||||||
value: '10'
|
value: '10'
|
||||||
|
|
||||||
# provide the total chaos duration
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '20'
|
|
||||||
|
|
||||||
- name: LIB_IMAGE
|
|
||||||
value: 'litmuschaos/go-runner:latest'
|
|
||||||
|
|
||||||
# provide the name of container runtime
|
# provide the name of container runtime
|
||||||
# it supports docker, containerd, crio
|
# for litmus LIB, it supports docker, containerd, crio
|
||||||
# default to docker
|
# for pumba LIB, it supports docker only
|
||||||
- name: CONTAINER_RUNTIME
|
- name: CONTAINER_RUNTIME
|
||||||
value: 'docker'
|
value: 'docker'
|
||||||
|
|
||||||
# provide the container runtime path for containerd
|
# provide the socket file path
|
||||||
# applicable only for containerd runtime
|
- name: SOCKET_PATH
|
||||||
- name: CONTAINER_PATH
|
value: '/var/run/docker.sock'
|
||||||
value: '/run/containerd/containerd.sock'
|
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
- name: TARGET_CONTAINER
|
||||||
|
value: ''
|
||||||
|
|
@@ -18,10 +18,17 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# specify the fill percentage according to the disk pressure required
|
# specify the fill percentage according to the disk pressure required
|
||||||
- name: FILL_PERCENTAGE
|
- name: FILL_PERCENTAGE
|
||||||
value: '80'
|
value: '80'
|
||||||
|
|
||||||
- name: TARGET_CONTAINER
|
- name: PODS_AFFECTED_PERC
|
||||||
value: 'nginx'
|
value: ''
|
||||||
|
|
||||||
|
# Provide the container runtime path
|
||||||
|
# Default set to docker container path
|
||||||
|
- name: CONTAINER_PATH
|
||||||
|
value: '/var/lib/docker/containers'
|
||||||
|
@@ -20,4 +20,4 @@ spec:
|
|||||||
value: '90' # in seconds
|
value: '90' # in seconds
|
||||||
|
|
||||||
- name: TARGET_NODE
|
- name: TARGET_NODE
|
||||||
value: 'node-01'
|
value: ''
|
@@ -18,8 +18,8 @@ spec:
|
|||||||
# kubernetes.io/hostname: 'node02'
|
# kubernetes.io/hostname: 'node02'
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '90' # in seconds
|
value: '60' # in seconds
|
||||||
|
|
||||||
# provide the target node name
|
# provide the target node name
|
||||||
- name: TARGET_NODE
|
- name: TARGET_NODE
|
||||||
value: 'node-01'
|
value: ''
|
||||||
|
@@ -52,7 +52,7 @@ spec:
|
|||||||
env:
|
env:
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '90' # in seconds
|
value: '60' # in seconds
|
||||||
|
|
||||||
# Period to wait before and after injection of chaos in sec
|
# Period to wait before and after injection of chaos in sec
|
||||||
- name: RAMP_TIME
|
- name: RAMP_TIME
|
||||||
|
@@ -21,6 +21,10 @@ spec:
|
|||||||
- name: NODE_CPU_CORE
|
- name: NODE_CPU_CORE
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
# ENTER THE COMMA SEPARATED TARGET NODES NAME
|
## percentage of total nodes to target
|
||||||
|
- name: NODES_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# provide the comma separated target node names
|
||||||
- name: TARGET_NODES
|
- name: TARGET_NODES
|
||||||
value: ''
|
value: ''
|
||||||
|
@@ -17,6 +17,10 @@ spec:
|
|||||||
# # provide the node labels
|
# # provide the node labels
|
||||||
# kubernetes.io/hostname: 'node02'
|
# kubernetes.io/hostname: 'node02'
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# enter the target node name
|
# enter the target node name
|
||||||
- name: TARGET_NODE
|
- name: TARGET_NODE
|
||||||
value: 'node-01'
|
value: ''
|
||||||
|
|
@@ -30,6 +30,10 @@ spec:
|
|||||||
- name: NUMBER_OF_WORKERS
|
- name: NUMBER_OF_WORKERS
|
||||||
value: '4'
|
value: '4'
|
||||||
|
|
||||||
## enter the comma separated target nodes name
|
## percentage of total nodes to target
|
||||||
|
- name: NODES_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# provide the comma separated target node names
|
||||||
- name: TARGET_NODES
|
- name: TARGET_NODES
|
||||||
value: ''
|
value: ''
|
||||||
|
@@ -23,6 +23,10 @@ spec:
|
|||||||
- name: MEMORY_CONSUMPTION_PERCENTAGE
|
- name: MEMORY_CONSUMPTION_PERCENTAGE
|
||||||
value: '30'
|
value: '30'
|
||||||
|
|
||||||
# ENTER THE COMMA SEPARATED TARGET NODES NAME
|
## percentage of total nodes to target
|
||||||
|
- name: NODES_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
# provide the comma separated target node names
|
||||||
- name: TARGET_NODES
|
- name: TARGET_NODES
|
||||||
value: ''
|
value: ''
|
||||||
|
@@ -17,6 +17,9 @@ spec:
|
|||||||
# # provide the node labels
|
# # provide the node labels
|
||||||
# kubernetes.io/hostname: 'node02'
|
# kubernetes.io/hostname: 'node02'
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# ENTER THE TARGET NODE NAME
|
# ENTER THE TARGET NODE NAME
|
||||||
- name: TARGET_NODE
|
- name: TARGET_NODE
|
||||||
value: ''
|
value: ''
|
||||||
@@ -27,4 +30,4 @@ spec:
|
|||||||
|
|
||||||
# ENTER THE USER TO BE USED FOR SSH AUTH
|
# ENTER THE USER TO BE USED FOR SSH AUTH
|
||||||
- name: SSH_USER
|
- name: SSH_USER
|
||||||
value: ''
|
value: 'root'
|
||||||
|
@@ -55,10 +55,7 @@ spec:
|
|||||||
value: 'root'
|
value: 'root'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '360'
|
value: '60'
|
||||||
|
|
||||||
- name: EXPERIMENT_NAME
|
|
||||||
value: 'node-poweroff'
|
|
||||||
|
|
||||||
- name: REBOOT_COMMAND
|
- name: REBOOT_COMMAND
|
||||||
value: '-o ServerAliveInterval=1 -o ServerAliveCountMax=1 "sudo systemctl poweroff --force --force" ; true'
|
value: '-o ServerAliveInterval=1 -o ServerAliveCountMax=1 "sudo systemctl poweroff --force --force" ; true'
|
||||||
|
@@ -17,9 +17,12 @@ spec:
|
|||||||
# # provide the node labels
|
# # provide the node labels
|
||||||
# kubernetes.io/hostname: 'node02'
|
# kubernetes.io/hostname: 'node02'
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# ENTER THE TARGET NODE NAME
|
# ENTER THE TARGET NODE NAME
|
||||||
- name: TARGET_NODE
|
- name: TARGET_NODE
|
||||||
value: 'node01'
|
value: ''
|
||||||
|
|
||||||
# ENTER THE TARGET NODE IP
|
# ENTER THE TARGET NODE IP
|
||||||
- name: TARGET_NODE_IP
|
- name: TARGET_NODE_IP
|
||||||
@@ -27,4 +30,4 @@ spec:
|
|||||||
|
|
||||||
# ENTER THE USER TO BE USED FOR SSH AUTH
|
# ENTER THE USER TO BE USED FOR SSH AUTH
|
||||||
- name: SSH_USER
|
- name: SSH_USER
|
||||||
value: ''
|
value: 'root'
|
||||||
|
@@ -17,11 +17,15 @@ spec:
|
|||||||
# # provide the node labels
|
# # provide the node labels
|
||||||
# kubernetes.io/hostname: 'node02'
|
# kubernetes.io/hostname: 'node02'
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# set target node name
|
# set target node name
|
||||||
- name: TARGET_NODE
|
- name: TARGET_NODE
|
||||||
value: 'node-01'
|
value: ''
|
||||||
|
|
||||||
# set taint label & effect
|
# set taint label & effect
|
||||||
# key=value:effect or key:effect
|
# key=value:effect or key:effect
|
||||||
- name: TAINTS
|
- name: TAINTS
|
||||||
value: 'node.kubernetes.io/unreachable:NoExecute'
|
value: 'node.kubernetes.io/unreachable:NoExecute'
|
||||||
|
|
@@ -16,10 +16,15 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60' # in seconds
|
||||||
|
|
||||||
#number of cpu cores to be consumed
|
#number of cpu cores to be consumed
|
||||||
#verify the resources the app has been launched with
|
#verify the resources the app has been launched with
|
||||||
- name: CPU_CORES
|
- name: CPU_CORES
|
||||||
value: '1'
|
value: '1'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
## Percentage of total pods to target
|
||||||
value: '60' # in seconds
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
@@ -17,8 +17,20 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: CPU_CORES
|
|
||||||
value: '1'
|
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '60' # in seconds
|
value: '60' # in seconds
|
||||||
|
|
||||||
|
- name: CPU_CORES
|
||||||
|
value: '1'
|
||||||
|
|
||||||
|
## Percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
## provide the cluster runtime
|
||||||
|
- name: CONTAINER_RUNTIME
|
||||||
|
value: 'docker'
|
||||||
|
|
||||||
|
# provide the socket file path
|
||||||
|
- name: SOCKET_PATH
|
||||||
|
value: '/var/run/docker.sock'
|
||||||
|
@@ -86,7 +86,6 @@ spec:
|
|||||||
value: 'docker'
|
value: 'docker'
|
||||||
|
|
||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
# it is used in pumba lib
|
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
@@ -27,3 +27,7 @@ spec:
|
|||||||
# pod failures without '--force' & default terminationGracePeriodSeconds
|
# pod failures without '--force' & default terminationGracePeriodSeconds
|
||||||
- name: FORCE
|
- name: FORCE
|
||||||
value: 'false'
|
value: 'false'
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
@@ -31,3 +31,7 @@ spec:
|
|||||||
# pod failures without '--force' & default terminationGracePeriodSeconds
|
# pod failures without '--force' & default terminationGracePeriodSeconds
|
||||||
- name: FORCE
|
- name: FORCE
|
||||||
value: 'false'
|
value: 'false'
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
@@ -17,6 +17,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: "60" # in seconds
|
||||||
|
|
||||||
# list of the target hostnames or kewywords eg. '["litmuschaos","chaosnative.io"]' . If empty all hostnames are targets
|
# list of the target hostnames or kewywords eg. '["litmuschaos","chaosnative.io"]' . If empty all hostnames are targets
|
||||||
- name: TARGET_HOSTNAMES
|
- name: TARGET_HOSTNAMES
|
||||||
value: ""
|
value: ""
|
||||||
@@ -25,9 +28,6 @@ spec:
|
|||||||
- name: MATCH_SCHEME
|
- name: MATCH_SCHEME
|
||||||
value: "exact"
|
value: "exact"
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: "60" # in seconds
|
|
||||||
|
|
||||||
# provide the name of container runtime, it supports docker, containerd, crio
|
# provide the name of container runtime, it supports docker, containerd, crio
|
||||||
- name: CONTAINER_RUNTIME
|
- name: CONTAINER_RUNTIME
|
||||||
value: "docker"
|
value: "docker"
|
||||||
@@ -35,3 +35,7 @@ spec:
|
|||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: "/var/run/docker.sock"
|
value: "/var/run/docker.sock"
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ""
|
||||||
|
@@ -17,13 +17,13 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: "60" # in seconds
|
||||||
|
|
||||||
# map of the target hostnames eg. '{"abc.com":"spoofabc.com"}' . If empty no queries will be spoofed
|
# map of the target hostnames eg. '{"abc.com":"spoofabc.com"}' . If empty no queries will be spoofed
|
||||||
- name: SPOOF_MAP
|
- name: SPOOF_MAP
|
||||||
value: '{"google.com":"fakegoogle.com"}'
|
value: '{"google.com":"fakegoogle.com"}'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: "60" # in seconds
|
|
||||||
|
|
||||||
# provide the name of container runtime, it supports docker, containerd, crio
|
# provide the name of container runtime, it supports docker, containerd, crio
|
||||||
- name: CONTAINER_RUNTIME
|
- name: CONTAINER_RUNTIME
|
||||||
value: "docker"
|
value: "docker"
|
||||||
@@ -31,3 +31,7 @@ spec:
|
|||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: "/var/run/docker.sock"
|
value: "/var/run/docker.sock"
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ""
|
||||||
|
@@ -24,5 +24,10 @@ spec:
|
|||||||
- name: FILESYSTEM_UTILIZATION_PERCENTAGE
|
- name: FILESYSTEM_UTILIZATION_PERCENTAGE
|
||||||
value: '10'
|
value: '10'
|
||||||
|
|
||||||
- name: TARGET_POD
|
## provide the cluster runtime
|
||||||
value: ''
|
- name: CONTAINER_RUNTIME
|
||||||
|
value: 'docker'
|
||||||
|
|
||||||
|
# provide the socket file path
|
||||||
|
- name: SOCKET_PATH
|
||||||
|
value: '/var/run/docker.sock'
|
||||||
|
@@ -16,10 +16,14 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60' # in seconds
|
||||||
|
|
||||||
# Enter the amount of memory in megabytes to be consumed by the application pod
|
# Enter the amount of memory in megabytes to be consumed by the application pod
|
||||||
- name: MEMORY_CONSUMPTION
|
- name: MEMORY_CONSUMPTION
|
||||||
value: '500'
|
value: '500'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
## percentage of total pods to target
|
||||||
value: '60' # in seconds
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
@@ -16,12 +16,21 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60' # in seconds
|
||||||
|
|
||||||
# Enter the amount of memory in megabytes to be consumed by the application pod
|
# Enter the amount of memory in megabytes to be consumed by the application pod
|
||||||
- name: MEMORY_CONSUMPTION
|
- name: MEMORY_CONSUMPTION
|
||||||
value: '500'
|
value: '500'
|
||||||
|
|
||||||
- name: NUMBER_OF_WORKERS
|
## percentage of total pods to target
|
||||||
value: '1'
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
## provide the cluster runtime
|
||||||
value: '60' # in seconds
|
- name: CONTAINER_RUNTIME
|
||||||
|
value: 'docker'
|
||||||
|
|
||||||
|
# provide the socket file path
|
||||||
|
- name: SOCKET_PATH
|
||||||
|
value: '/var/run/docker.sock'
|
||||||
|
@@ -86,8 +86,11 @@ spec:
|
|||||||
- name: STRESS_IMAGE
|
- name: STRESS_IMAGE
|
||||||
value: 'alexeiled/stress-ng:latest-ubuntu'
|
value: 'alexeiled/stress-ng:latest-ubuntu'
|
||||||
|
|
||||||
|
## provide the cluster runtime
|
||||||
|
- name: CONTAINER_RUNTIME
|
||||||
|
value: 'docker'
|
||||||
|
|
||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
# it is used in pumba lib
|
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
@@ -17,10 +17,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
#Network interface inside target container
|
|
||||||
- name: NETWORK_INTERFACE
|
|
||||||
value: 'eth0'
|
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '60' # in seconds
|
value: '60' # in seconds
|
||||||
|
|
||||||
@@ -33,3 +29,10 @@ spec:
|
|||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
- name: NETWORK_PACKET_CORRUPTION_PERCENTAGE
|
||||||
|
value: '100' #in PERCENTAGE
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
@@ -21,10 +21,6 @@ spec:
|
|||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '60' # in seconds
|
value: '60' # in seconds
|
||||||
|
|
||||||
#Network interface inside target container
|
|
||||||
- name: NETWORK_INTERFACE
|
|
||||||
value: 'eth0'
|
|
||||||
|
|
||||||
- name: NETWORK_PACKET_DUPLICATION_PERCENTAGE
|
- name: NETWORK_PACKET_DUPLICATION_PERCENTAGE
|
||||||
value: '100'
|
value: '100'
|
||||||
|
|
||||||
@@ -37,3 +33,7 @@ spec:
|
|||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
@@ -17,16 +17,12 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
#Network interface inside target container
|
- name: TOTAL_CHAOS_DURATION
|
||||||
- name: NETWORK_INTERFACE
|
value: '60' # in seconds
|
||||||
value: 'eth0'
|
|
||||||
|
|
||||||
- name: NETWORK_LATENCY
|
- name: NETWORK_LATENCY
|
||||||
value: '2000'
|
value: '2000'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '60' # in seconds
|
|
||||||
|
|
||||||
# provide the name of container runtime
|
# provide the name of container runtime
|
||||||
# for litmus LIB, it supports docker, containerd, crio
|
# for litmus LIB, it supports docker, containerd, crio
|
||||||
# for pumba LIB, it supports docker only
|
# for pumba LIB, it supports docker only
|
||||||
@@ -36,3 +32,7 @@ spec:
|
|||||||
# provide the socket file path
|
# provide the socket file path
|
||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
@@ -18,16 +18,11 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
|
||||||
#Network interface inside target container
|
|
||||||
- name: NETWORK_INTERFACE
|
|
||||||
value: 'eth0'
|
|
||||||
|
|
||||||
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
|
||||||
value: '100'
|
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '60' # in seconds
|
value: '60' # in seconds
|
||||||
|
|
||||||
|
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
||||||
|
value: '100'
|
||||||
|
|
||||||
# provide the name of container runtime
|
# provide the name of container runtime
|
||||||
# for litmus LIB, it supports docker, containerd, crio
|
# for litmus LIB, it supports docker, containerd, crio
|
||||||
@@ -39,3 +34,7 @@ spec:
|
|||||||
- name: SOCKET_PATH
|
- name: SOCKET_PATH
|
||||||
value: '/var/run/docker.sock'
|
value: '/var/run/docker.sock'
|
||||||
|
|
||||||
|
## percentage of total pods to target
|
||||||
|
- name: PODS_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
@@ -18,6 +18,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
# set chaos duration (in sec) as desired
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# choose based on available kafka broker replicas
|
# choose based on available kafka broker replicas
|
||||||
- name: KAFKA_REPLICATION_FACTOR
|
- name: KAFKA_REPLICATION_FACTOR
|
||||||
value: '3'
|
value: '3'
|
||||||
@@ -74,8 +78,4 @@ spec:
|
|||||||
# Uses 'disk-1' attached to the node on which it is scheduled
|
# Uses 'disk-1' attached to the node on which it is scheduled
|
||||||
- name: KAFKA_BROKER
|
- name: KAFKA_BROKER
|
||||||
value: 'kafka-0'
|
value: 'kafka-0'
|
||||||
|
|
||||||
# set chaos duration (in sec) as desired
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '60'
|
|
||||||
|
|
@@ -18,6 +18,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
# set chaos duration (in sec) as desired
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
# choose based on available kafka broker replicas
|
# choose based on available kafka broker replicas
|
||||||
- name: KAFKA_REPLICATION_FACTOR
|
- name: KAFKA_REPLICATION_FACTOR
|
||||||
value: '3'
|
value: '3'
|
||||||
@@ -60,10 +64,6 @@ spec:
|
|||||||
- name: ZOOKEEPER_PORT
|
- name: ZOOKEEPER_PORT
|
||||||
value: '2181'
|
value: '2181'
|
||||||
|
|
||||||
# set chaos duration (in sec) as desired
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '60'
|
|
||||||
|
|
||||||
# set chaos interval (in sec) as desired
|
# set chaos interval (in sec) as desired
|
||||||
- name: CHAOS_INTERVAL
|
- name: CHAOS_INTERVAL
|
||||||
value: '20'
|
value: '20'
|
||||||
|
@@ -74,10 +74,6 @@ spec:
|
|||||||
- name: CHAOS_INTERVAL
|
- name: CHAOS_INTERVAL
|
||||||
value: '5'
|
value: '5'
|
||||||
|
|
||||||
# provide the kill count
|
|
||||||
- name: KILL_COUNT
|
|
||||||
value: ''
|
|
||||||
|
|
||||||
## it defines the sequence of chaos execution for multiple target pods
|
## it defines the sequence of chaos execution for multiple target pods
|
||||||
## supported values: serial, parallel
|
## supported values: serial, parallel
|
||||||
- name: SEQUENCE
|
- name: SEQUENCE
|
||||||
|
@@ -26,3 +26,7 @@ spec:
|
|||||||
# provide the region name of the instance
|
# provide the region name of the instance
|
||||||
- name: REGION
|
- name: REGION
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
|
- name: VOLUME_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
|
@@ -31,3 +31,7 @@ spec:
|
|||||||
# enable it if the target instance is a part of self-managed nodegroup.
|
# enable it if the target instance is a part of self-managed nodegroup.
|
||||||
- name: MANAGED_NODEGROUP
|
- name: MANAGED_NODEGROUP
|
||||||
value: 'disable'
|
value: 'disable'
|
||||||
|
|
||||||
|
# Target the percentage of instance filtered from tag
|
||||||
|
- name: INSTANCE_AFFECTED_PERC
|
||||||
|
value: ''
|
||||||
|
@@ -16,15 +16,5 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: OPENEBS_NAMESPACE
|
|
||||||
value: 'openebs'
|
|
||||||
|
|
||||||
## Period to wait before injection of chaos
|
|
||||||
- name: RAMP_TIME
|
|
||||||
value: '10'
|
|
||||||
|
|
||||||
- name: FORCE
|
- name: FORCE
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
- name: LIB
|
|
||||||
value: ''
|
|
@@ -70,7 +70,7 @@ spec:
|
|||||||
## env var that describes the library used to execute the chaos
|
## env var that describes the library used to execute the chaos
|
||||||
## default: litmus. Supported values: litmus, powerfulseal
|
## default: litmus. Supported values: litmus, powerfulseal
|
||||||
- name: LIB
|
- name: LIB
|
||||||
value: ''
|
value: 'litmus'
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
name: openebs-control-plane-chaos
|
name: openebs-control-plane-chaos
|
||||||
|
@@ -16,13 +16,13 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
# provide the total chaos duration
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '20'
|
||||||
|
|
||||||
- name: NFS_PROVISIONER_NAMESPACE
|
- name: NFS_PROVISIONER_NAMESPACE
|
||||||
value: 'app-nfs-ns'
|
value: 'app-nfs-ns'
|
||||||
|
|
||||||
## Period to wait before injection of chaos
|
|
||||||
- name: RAMP_TIME
|
|
||||||
value: '10'
|
|
||||||
|
|
||||||
- name: NFS_PROVISIONER_LABEL
|
- name: NFS_PROVISIONER_LABEL
|
||||||
value: 'app=nfs'
|
value: 'app=nfs'
|
||||||
|
|
||||||
|
@@ -18,6 +18,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
# provide the total chaos duration
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '20'
|
||||||
|
|
||||||
- name: APP_PVC
|
- name: APP_PVC
|
||||||
value: 'demo-nginx-claim'
|
value: 'demo-nginx-claim'
|
||||||
|
|
||||||
|
@@ -17,7 +17,11 @@ spec:
|
|||||||
- name: openebs-pool-disk-loss
|
- name: openebs-pool-disk-loss
|
||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
# provide the total chaos duration
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
- name: APP_PVC
|
- name: APP_PVC
|
||||||
value: 'demo-nginx-claim'
|
value: 'demo-nginx-claim'
|
||||||
|
|
||||||
@@ -25,14 +29,6 @@ spec:
|
|||||||
- name: CLOUD_PLATFORM
|
- name: CLOUD_PLATFORM
|
||||||
value: 'GKE'
|
value: 'GKE'
|
||||||
|
|
||||||
# Enter the time duration in sec after the disk is dettached
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '60'
|
|
||||||
|
|
||||||
# Period to wait before injection of chaos in sec
|
|
||||||
- name: RAMP_TIME
|
|
||||||
value: ''
|
|
||||||
|
|
||||||
# Enter the project id for gcp only
|
# Enter the project id for gcp only
|
||||||
- name: PROJECT_ID
|
- name: PROJECT_ID
|
||||||
value: 'litmus-demo-123'
|
value: 'litmus-demo-123'
|
||||||
@@ -52,6 +48,4 @@ spec:
|
|||||||
# Enter the zone name
|
# Enter the zone name
|
||||||
- name: ZONE_NAME
|
- name: ZONE_NAME
|
||||||
value: 'us-central1-a'
|
value: 'us-central1-a'
|
||||||
|
|
||||||
- name: OPENEBS_NAMESPACE
|
|
||||||
value: 'openebs'
|
|
@@ -14,16 +14,12 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60' # in seconds
|
||||||
|
|
||||||
- name: APP_PVC
|
- name: APP_PVC
|
||||||
value: 'demo-nginx-claim'
|
value: 'demo-nginx-claim'
|
||||||
|
|
||||||
- name: OPENEBS_NAMESPACE
|
|
||||||
value: 'openebs'
|
|
||||||
|
|
||||||
# in milliseconds
|
# in milliseconds
|
||||||
- name: NETWORK_DELAY
|
- name: NETWORK_DELAY
|
||||||
value: '60000'
|
value: '60000'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '60' # in seconds
|
|
||||||
|
|
||||||
|
@@ -17,18 +17,11 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: FORCE
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: 'true'
|
value: '120' # in seconds
|
||||||
|
|
||||||
- name: APP_PVC
|
- name: APP_PVC
|
||||||
value: 'demo-nginx-claim'
|
value: 'demo-nginx-claim'
|
||||||
|
|
||||||
- name: OPENEBS_NAMESPACE
|
|
||||||
value: 'openebs'
|
|
||||||
|
|
||||||
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
||||||
value: '100'
|
value: '100'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '120' # in seconds
|
|
||||||
|
|
||||||
|
@@ -18,8 +18,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
- name: FORCE
|
- name: CHAOS_ITERATIONS
|
||||||
value: 'true'
|
value: '2'
|
||||||
|
|
||||||
- name: APP_PVC
|
- name: APP_PVC
|
||||||
value: 'demo-nginx-claim'
|
value: 'demo-nginx-claim'
|
||||||
|
@@ -18,6 +18,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
# provide the total chaos duration
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '20'
|
||||||
|
|
||||||
- name: TARGET_CONTAINER
|
- name: TARGET_CONTAINER
|
||||||
value: 'cstor-istgt'
|
value: 'cstor-istgt'
|
||||||
|
|
||||||
|
@@ -18,6 +18,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60' # in seconds
|
||||||
|
|
||||||
- name: TARGET_CONTAINER
|
- name: TARGET_CONTAINER
|
||||||
value: 'cstor-istgt'
|
value: 'cstor-istgt'
|
||||||
|
|
||||||
@@ -29,6 +32,4 @@ spec:
|
|||||||
|
|
||||||
- name: NETWORK_DELAY
|
- name: NETWORK_DELAY
|
||||||
value: '30000'
|
value: '30000'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '60' # in seconds
|
|
@@ -18,6 +18,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '120' # in seconds
|
||||||
|
|
||||||
- name: TARGET_CONTAINER
|
- name: TARGET_CONTAINER
|
||||||
value: 'cstor-istgt'
|
value: 'cstor-istgt'
|
||||||
|
|
||||||
@@ -26,6 +29,3 @@ spec:
|
|||||||
|
|
||||||
- name: DEPLOY_TYPE
|
- name: DEPLOY_TYPE
|
||||||
value: 'deployment'
|
value: 'deployment'
|
||||||
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: '120' # in seconds
|
|
@@ -18,6 +18,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
components:
|
components:
|
||||||
env:
|
env:
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60'
|
||||||
|
|
||||||
- name: FORCE
|
- name: FORCE
|
||||||
value: 'true'
|
value: 'true'
|
||||||
|
|
||||||
|
@@ -68,7 +68,6 @@ spec:
|
|||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '30'
|
value: '30'
|
||||||
|
|
||||||
|
|
||||||
- name: LIB
|
- name: LIB
|
||||||
value: 'litmus'
|
value: 'litmus'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user