From a5af71f24a9bd389e7ec4d628d37c7c60ba7d044 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Tue, 13 Jul 2021 15:56:12 +0530 Subject: [PATCH] chore(env): Adding required env inside chaosengine (#479) Signed-off-by: shubhamchaudhary --- .../aws-ssm/aws-ssm-chaos-by-id/engine.yaml | 33 +++++++++++++++++++ .../aws-ssm-chaos-by-id/experiment.yaml | 1 - .../aws-ssm/aws-ssm-chaos-by-tag/engine.yaml | 33 +++++++++++++++++++ .../cassandra-pod-delete/engine.yaml | 5 ++- charts/generic/container-kill/engine.yaml | 16 ++++++--- .../engine_nginx_getstarted.yaml | 31 +++++++++-------- charts/generic/disk-fill/engine.yaml | 15 ++++++--- .../generic/docker-service-kill/engine.yaml | 2 +- .../generic/kubelet-service-kill/engine.yaml | 4 +-- .../kubelet-service-kill/experiment.yaml | 2 +- charts/generic/node-cpu-hog/engine.yaml | 6 +++- charts/generic/node-drain/engine.yaml | 6 +++- charts/generic/node-io-stress/engine.yaml | 6 +++- charts/generic/node-memory-hog/engine.yaml | 6 +++- charts/generic/node-poweroff/engine.yaml | 5 ++- charts/generic/node-poweroff/experiment.yaml | 5 +-- charts/generic/node-restart/engine.yaml | 7 ++-- charts/generic/node-taint/engine.yaml | 8 +++-- charts/generic/pod-cpu-hog-exec/engine.yaml | 9 +++-- charts/generic/pod-cpu-hog/engine.yaml | 18 ++++++++-- charts/generic/pod-cpu-hog/experiment.yaml | 1 - charts/generic/pod-delete/engine.yaml | 4 +++ .../pod-delete/engine_nginx_getstarted.yaml | 4 +++ charts/generic/pod-dns-error/engine.yaml | 10 ++++-- charts/generic/pod-dns-spoof/engine.yaml | 10 ++++-- charts/generic/pod-io-stress/engine.yaml | 9 +++-- .../generic/pod-memory-hog-exec/engine.yaml | 10 ++++-- charts/generic/pod-memory-hog/engine.yaml | 17 +++++++--- charts/generic/pod-memory-hog/experiment.yaml | 5 ++- .../pod-network-corruption/engine.yaml | 11 ++++--- .../pod-network-duplication/engine.yaml | 8 ++--- .../generic/pod-network-latency/engine.yaml | 12 +++---- charts/generic/pod-network-loss/engine.yaml | 15 ++++----- .../kafka-broker-disk-failure/engine.yaml | 10 +++--- .../kafka-broker-pod-failure/engine.yaml | 8 ++--- .../kafka-broker-pod-failure/experiment.yaml | 4 --- charts/kube-aws/ebs-loss-by-tag/engine.yaml | 4 +++ .../kube-aws/ec2-terminate-by-tag/engine.yaml | 4 +++ .../openebs-control-plane-chaos/engine.yaml | 12 +------ .../experiment.yaml | 2 +- .../openebs-nfs-provisioner-kill/engine.yaml | 8 ++--- .../engine.yaml | 4 +++ .../openebs-pool-disk-loss/engine.yaml | 18 ++++------ .../openebs-pool-network-delay/engine.yaml | 10 ++---- .../openebs-pool-network-loss/engine.yaml | 11 ++----- .../openebs-pool-pod-failure/engine.yaml | 4 +-- .../engine.yaml | 4 +++ .../openebs-target-network-delay/engine.yaml | 7 ++-- .../openebs-target-network-loss/engine.yaml | 6 ++-- .../openebs-target-pod-failure/engine.yaml | 3 ++ charts/vmware/vm-poweroff/experiment.yaml | 1 - 51 files changed, 300 insertions(+), 154 deletions(-) diff --git a/charts/aws-ssm/aws-ssm-chaos-by-id/engine.yaml b/charts/aws-ssm/aws-ssm-chaos-by-id/engine.yaml index 1e0df68..1133a5a 100644 --- a/charts/aws-ssm/aws-ssm-chaos-by-id/engine.yaml +++ b/charts/aws-ssm/aws-ssm-chaos-by-id/engine.yaml @@ -27,3 +27,36 @@ spec: # provide the region name of the target instances - name: REGION 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' diff --git a/charts/aws-ssm/aws-ssm-chaos-by-id/experiment.yaml b/charts/aws-ssm/aws-ssm-chaos-by-id/experiment.yaml index 10add3b..1e8a13d 100644 --- a/charts/aws-ssm/aws-ssm-chaos-by-id/experiment.yaml +++ b/charts/aws-ssm/aws-ssm-chaos-by-id/experiment.yaml @@ -50,7 +50,6 @@ spec: - name: CHAOS_INTERVAL value: '60' - # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/aws-ssm/aws-ssm-chaos-by-tag/engine.yaml b/charts/aws-ssm/aws-ssm-chaos-by-tag/engine.yaml index c10f7a7..19d294b 100644 --- a/charts/aws-ssm/aws-ssm-chaos-by-tag/engine.yaml +++ b/charts/aws-ssm/aws-ssm-chaos-by-tag/engine.yaml @@ -27,3 +27,36 @@ spec: # provide the region name of the target instances - name: REGION 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' diff --git a/charts/cassandra/cassandra-pod-delete/engine.yaml b/charts/cassandra/cassandra-pod-delete/engine.yaml index f76bc1c..d9ec808 100644 --- a/charts/cassandra/cassandra-pod-delete/engine.yaml +++ b/charts/cassandra/cassandra-pod-delete/engine.yaml @@ -49,4 +49,7 @@ spec: - name: CASSANDRA_LIVENESS_CHECK value: '' - + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' + \ No newline at end of file diff --git a/charts/generic/container-kill/engine.yaml b/charts/generic/container-kill/engine.yaml index b0d7a75..19ccab1 100644 --- a/charts/generic/container-kill/engine.yaml +++ b/charts/generic/container-kill/engine.yaml @@ -16,14 +16,14 @@ spec: spec: components: env: - # provide the chaos interval - - name: CHAOS_INTERVAL - value: '10' - # provide the total chaos duration - name: TOTAL_CHAOS_DURATION value: '20' + # provide the chaos interval + - name: CHAOS_INTERVAL + value: '10' + # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only @@ -33,4 +33,10 @@ spec: # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock' - + + - name: PODS_AFFECTED_PERC + value: '' + + - name: TARGET_CONTAINER + value: '' + \ No newline at end of file diff --git a/charts/generic/container-kill/engine_nginx_getstarted.yaml b/charts/generic/container-kill/engine_nginx_getstarted.yaml index 215da03..1f98146 100644 --- a/charts/generic/container-kill/engine_nginx_getstarted.yaml +++ b/charts/generic/container-kill/engine_nginx_getstarted.yaml @@ -20,28 +20,27 @@ spec: spec: components: env: - # specify the name of the container to be killed - - name: TARGET_CONTAINER - value: 'nginx' + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '20' # provide the chaos interval - name: CHAOS_INTERVAL 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 - # it supports docker, containerd, crio - # default to docker + # for litmus LIB, it supports docker, containerd, crio + # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME value: 'docker' - # provide the container runtime path for containerd - # applicable only for containerd runtime - - name: CONTAINER_PATH - value: '/run/containerd/containerd.sock' \ No newline at end of file + # provide the socket file path + - name: SOCKET_PATH + value: '/var/run/docker.sock' + + - name: PODS_AFFECTED_PERC + value: '' + + - name: TARGET_CONTAINER + value: '' + \ No newline at end of file diff --git a/charts/generic/disk-fill/engine.yaml b/charts/generic/disk-fill/engine.yaml index 270c162..a7abecd 100644 --- a/charts/generic/disk-fill/engine.yaml +++ b/charts/generic/disk-fill/engine.yaml @@ -18,10 +18,17 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' + # specify the fill percentage according to the disk pressure required - name: FILL_PERCENTAGE value: '80' - - - name: TARGET_CONTAINER - value: 'nginx' - \ No newline at end of file + + - name: PODS_AFFECTED_PERC + value: '' + + # Provide the container runtime path + # Default set to docker container path + - name: CONTAINER_PATH + value: '/var/lib/docker/containers' diff --git a/charts/generic/docker-service-kill/engine.yaml b/charts/generic/docker-service-kill/engine.yaml index 46076d8..cfc1d1a 100644 --- a/charts/generic/docker-service-kill/engine.yaml +++ b/charts/generic/docker-service-kill/engine.yaml @@ -20,4 +20,4 @@ spec: value: '90' # in seconds - name: TARGET_NODE - value: 'node-01' \ No newline at end of file + value: '' \ No newline at end of file diff --git a/charts/generic/kubelet-service-kill/engine.yaml b/charts/generic/kubelet-service-kill/engine.yaml index 7e036c8..5ebc548 100644 --- a/charts/generic/kubelet-service-kill/engine.yaml +++ b/charts/generic/kubelet-service-kill/engine.yaml @@ -18,8 +18,8 @@ spec: # kubernetes.io/hostname: 'node02' env: - name: TOTAL_CHAOS_DURATION - value: '90' # in seconds + value: '60' # in seconds # provide the target node name - name: TARGET_NODE - value: 'node-01' + value: '' diff --git a/charts/generic/kubelet-service-kill/experiment.yaml b/charts/generic/kubelet-service-kill/experiment.yaml index a88432f..0350dda 100644 --- a/charts/generic/kubelet-service-kill/experiment.yaml +++ b/charts/generic/kubelet-service-kill/experiment.yaml @@ -52,7 +52,7 @@ spec: env: - name: TOTAL_CHAOS_DURATION - value: '90' # in seconds + value: '60' # in seconds # Period to wait before and after injection of chaos in sec - name: RAMP_TIME diff --git a/charts/generic/node-cpu-hog/engine.yaml b/charts/generic/node-cpu-hog/engine.yaml index 3fbb0be..19ff6ef 100644 --- a/charts/generic/node-cpu-hog/engine.yaml +++ b/charts/generic/node-cpu-hog/engine.yaml @@ -21,6 +21,10 @@ spec: - name: NODE_CPU_CORE 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 value: '' diff --git a/charts/generic/node-drain/engine.yaml b/charts/generic/node-drain/engine.yaml index d47c03e..65a4216 100644 --- a/charts/generic/node-drain/engine.yaml +++ b/charts/generic/node-drain/engine.yaml @@ -17,6 +17,10 @@ spec: # # provide the node labels # kubernetes.io/hostname: 'node02' env: + - name: TOTAL_CHAOS_DURATION + value: '60' + # enter the target node name - name: TARGET_NODE - value: 'node-01' \ No newline at end of file + value: '' + \ No newline at end of file diff --git a/charts/generic/node-io-stress/engine.yaml b/charts/generic/node-io-stress/engine.yaml index c28eb18..938949f 100644 --- a/charts/generic/node-io-stress/engine.yaml +++ b/charts/generic/node-io-stress/engine.yaml @@ -30,6 +30,10 @@ spec: - name: NUMBER_OF_WORKERS 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 value: '' diff --git a/charts/generic/node-memory-hog/engine.yaml b/charts/generic/node-memory-hog/engine.yaml index 54411e0..ba3fad7 100644 --- a/charts/generic/node-memory-hog/engine.yaml +++ b/charts/generic/node-memory-hog/engine.yaml @@ -23,6 +23,10 @@ spec: - name: MEMORY_CONSUMPTION_PERCENTAGE 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 value: '' diff --git a/charts/generic/node-poweroff/engine.yaml b/charts/generic/node-poweroff/engine.yaml index 5c66dd2..68ac3a7 100644 --- a/charts/generic/node-poweroff/engine.yaml +++ b/charts/generic/node-poweroff/engine.yaml @@ -17,6 +17,9 @@ spec: # # provide the node labels # kubernetes.io/hostname: 'node02' env: + - name: TOTAL_CHAOS_DURATION + value: '60' + # ENTER THE TARGET NODE NAME - name: TARGET_NODE value: '' @@ -27,4 +30,4 @@ spec: # ENTER THE USER TO BE USED FOR SSH AUTH - name: SSH_USER - value: '' + value: 'root' diff --git a/charts/generic/node-poweroff/experiment.yaml b/charts/generic/node-poweroff/experiment.yaml index 20b4916..4e862e4 100644 --- a/charts/generic/node-poweroff/experiment.yaml +++ b/charts/generic/node-poweroff/experiment.yaml @@ -55,10 +55,7 @@ spec: value: 'root' - name: TOTAL_CHAOS_DURATION - value: '360' - - - name: EXPERIMENT_NAME - value: 'node-poweroff' + value: '60' - name: REBOOT_COMMAND value: '-o ServerAliveInterval=1 -o ServerAliveCountMax=1 "sudo systemctl poweroff --force --force" ; true' diff --git a/charts/generic/node-restart/engine.yaml b/charts/generic/node-restart/engine.yaml index 97cc01f..71e3d70 100644 --- a/charts/generic/node-restart/engine.yaml +++ b/charts/generic/node-restart/engine.yaml @@ -17,9 +17,12 @@ spec: # # provide the node labels # kubernetes.io/hostname: 'node02' env: + - name: TOTAL_CHAOS_DURATION + value: '60' + # ENTER THE TARGET NODE NAME - name: TARGET_NODE - value: 'node01' + value: '' # ENTER THE TARGET NODE IP - name: TARGET_NODE_IP @@ -27,4 +30,4 @@ spec: # ENTER THE USER TO BE USED FOR SSH AUTH - name: SSH_USER - value: '' + value: 'root' diff --git a/charts/generic/node-taint/engine.yaml b/charts/generic/node-taint/engine.yaml index 4bbd576..44cfc24 100644 --- a/charts/generic/node-taint/engine.yaml +++ b/charts/generic/node-taint/engine.yaml @@ -17,11 +17,15 @@ spec: # # provide the node labels # kubernetes.io/hostname: 'node02' env: + - name: TOTAL_CHAOS_DURATION + value: '60' + # set target node name - name: TARGET_NODE - value: 'node-01' + value: '' # set taint label & effect # key=value:effect or key:effect - name: TAINTS - value: 'node.kubernetes.io/unreachable:NoExecute' \ No newline at end of file + value: 'node.kubernetes.io/unreachable:NoExecute' + \ No newline at end of file diff --git a/charts/generic/pod-cpu-hog-exec/engine.yaml b/charts/generic/pod-cpu-hog-exec/engine.yaml index f710fce..c793410 100644 --- a/charts/generic/pod-cpu-hog-exec/engine.yaml +++ b/charts/generic/pod-cpu-hog-exec/engine.yaml @@ -16,10 +16,15 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds + #number of cpu cores to be consumed #verify the resources the app has been launched with - name: CPU_CORES value: '1' - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds \ No newline at end of file + ## Percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' + \ No newline at end of file diff --git a/charts/generic/pod-cpu-hog/engine.yaml b/charts/generic/pod-cpu-hog/engine.yaml index 4df7272..d8875e7 100644 --- a/charts/generic/pod-cpu-hog/engine.yaml +++ b/charts/generic/pod-cpu-hog/engine.yaml @@ -17,8 +17,20 @@ spec: spec: components: env: - - name: CPU_CORES - value: '1' - - name: TOTAL_CHAOS_DURATION 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' diff --git a/charts/generic/pod-cpu-hog/experiment.yaml b/charts/generic/pod-cpu-hog/experiment.yaml index b4172dd..6562a7c 100644 --- a/charts/generic/pod-cpu-hog/experiment.yaml +++ b/charts/generic/pod-cpu-hog/experiment.yaml @@ -86,7 +86,6 @@ spec: value: 'docker' # provide the socket file path - # it is used in pumba lib - name: SOCKET_PATH value: '/var/run/docker.sock' diff --git a/charts/generic/pod-delete/engine.yaml b/charts/generic/pod-delete/engine.yaml index 015c46d..c211c73 100644 --- a/charts/generic/pod-delete/engine.yaml +++ b/charts/generic/pod-delete/engine.yaml @@ -27,3 +27,7 @@ spec: # pod failures without '--force' & default terminationGracePeriodSeconds - name: FORCE value: 'false' + + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' diff --git a/charts/generic/pod-delete/engine_nginx_getstarted.yaml b/charts/generic/pod-delete/engine_nginx_getstarted.yaml index bf17a72..043113f 100644 --- a/charts/generic/pod-delete/engine_nginx_getstarted.yaml +++ b/charts/generic/pod-delete/engine_nginx_getstarted.yaml @@ -31,3 +31,7 @@ spec: # pod failures without '--force' & default terminationGracePeriodSeconds - name: FORCE value: 'false' + + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' diff --git a/charts/generic/pod-dns-error/engine.yaml b/charts/generic/pod-dns-error/engine.yaml index b49cbaf..63f4a16 100644 --- a/charts/generic/pod-dns-error/engine.yaml +++ b/charts/generic/pod-dns-error/engine.yaml @@ -17,6 +17,9 @@ spec: spec: components: 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 - name: TARGET_HOSTNAMES value: "" @@ -25,9 +28,6 @@ spec: - name: MATCH_SCHEME value: "exact" - - name: TOTAL_CHAOS_DURATION - value: "60" # in seconds - # provide the name of container runtime, it supports docker, containerd, crio - name: CONTAINER_RUNTIME value: "docker" @@ -35,3 +35,7 @@ spec: # provide the socket file path - name: SOCKET_PATH value: "/var/run/docker.sock" + + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: "" diff --git a/charts/generic/pod-dns-spoof/engine.yaml b/charts/generic/pod-dns-spoof/engine.yaml index b6150e8..88f3a24 100644 --- a/charts/generic/pod-dns-spoof/engine.yaml +++ b/charts/generic/pod-dns-spoof/engine.yaml @@ -17,13 +17,13 @@ spec: spec: components: 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 - name: SPOOF_MAP value: '{"google.com":"fakegoogle.com"}' - - name: TOTAL_CHAOS_DURATION - value: "60" # in seconds - # provide the name of container runtime, it supports docker, containerd, crio - name: CONTAINER_RUNTIME value: "docker" @@ -31,3 +31,7 @@ spec: # provide the socket file path - name: SOCKET_PATH value: "/var/run/docker.sock" + + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: "" diff --git a/charts/generic/pod-io-stress/engine.yaml b/charts/generic/pod-io-stress/engine.yaml index cd08144..60f8aad 100644 --- a/charts/generic/pod-io-stress/engine.yaml +++ b/charts/generic/pod-io-stress/engine.yaml @@ -24,5 +24,10 @@ spec: - name: FILESYSTEM_UTILIZATION_PERCENTAGE value: '10' - - name: TARGET_POD - value: '' + ## provide the cluster runtime + - name: CONTAINER_RUNTIME + value: 'docker' + + # provide the socket file path + - name: SOCKET_PATH + value: '/var/run/docker.sock' diff --git a/charts/generic/pod-memory-hog-exec/engine.yaml b/charts/generic/pod-memory-hog-exec/engine.yaml index fa6ca86..5bc6b0d 100644 --- a/charts/generic/pod-memory-hog-exec/engine.yaml +++ b/charts/generic/pod-memory-hog-exec/engine.yaml @@ -16,10 +16,14 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds + # Enter the amount of memory in megabytes to be consumed by the application pod - name: MEMORY_CONSUMPTION value: '500' - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds - \ No newline at end of file + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' + \ No newline at end of file diff --git a/charts/generic/pod-memory-hog/engine.yaml b/charts/generic/pod-memory-hog/engine.yaml index 2a96906..e5b9c52 100644 --- a/charts/generic/pod-memory-hog/engine.yaml +++ b/charts/generic/pod-memory-hog/engine.yaml @@ -16,12 +16,21 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds + # Enter the amount of memory in megabytes to be consumed by the application pod - name: MEMORY_CONSUMPTION value: '500' - - name: NUMBER_OF_WORKERS - value: '1' + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + ## provide the cluster runtime + - name: CONTAINER_RUNTIME + value: 'docker' + + # provide the socket file path + - name: SOCKET_PATH + value: '/var/run/docker.sock' diff --git a/charts/generic/pod-memory-hog/experiment.yaml b/charts/generic/pod-memory-hog/experiment.yaml index 4e04c3d..b9c18d3 100644 --- a/charts/generic/pod-memory-hog/experiment.yaml +++ b/charts/generic/pod-memory-hog/experiment.yaml @@ -86,8 +86,11 @@ spec: - name: STRESS_IMAGE value: 'alexeiled/stress-ng:latest-ubuntu' + ## provide the cluster runtime + - name: CONTAINER_RUNTIME + value: 'docker' + # provide the socket file path - # it is used in pumba lib - name: SOCKET_PATH value: '/var/run/docker.sock' diff --git a/charts/generic/pod-network-corruption/engine.yaml b/charts/generic/pod-network-corruption/engine.yaml index 2df7b30..c8cebb5 100644 --- a/charts/generic/pod-network-corruption/engine.yaml +++ b/charts/generic/pod-network-corruption/engine.yaml @@ -17,10 +17,6 @@ spec: spec: components: env: - #Network interface inside target container - - name: NETWORK_INTERFACE - value: 'eth0' - - name: TOTAL_CHAOS_DURATION value: '60' # in seconds @@ -33,3 +29,10 @@ spec: # provide the socket file path - name: SOCKET_PATH 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: '' diff --git a/charts/generic/pod-network-duplication/engine.yaml b/charts/generic/pod-network-duplication/engine.yaml index 6c42fdb..d726f75 100644 --- a/charts/generic/pod-network-duplication/engine.yaml +++ b/charts/generic/pod-network-duplication/engine.yaml @@ -21,10 +21,6 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' # in seconds - #Network interface inside target container - - name: NETWORK_INTERFACE - value: 'eth0' - - name: NETWORK_PACKET_DUPLICATION_PERCENTAGE value: '100' @@ -37,3 +33,7 @@ spec: # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock' + + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' diff --git a/charts/generic/pod-network-latency/engine.yaml b/charts/generic/pod-network-latency/engine.yaml index 431558a..a5fe8fa 100644 --- a/charts/generic/pod-network-latency/engine.yaml +++ b/charts/generic/pod-network-latency/engine.yaml @@ -17,16 +17,12 @@ spec: spec: components: env: - #Network interface inside target container - - name: NETWORK_INTERFACE - value: 'eth0' + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds - name: NETWORK_LATENCY value: '2000' - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds - # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only @@ -36,3 +32,7 @@ spec: # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock' + + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' diff --git a/charts/generic/pod-network-loss/engine.yaml b/charts/generic/pod-network-loss/engine.yaml index 5459c7a..36718dc 100644 --- a/charts/generic/pod-network-loss/engine.yaml +++ b/charts/generic/pod-network-loss/engine.yaml @@ -18,16 +18,11 @@ spec: spec: components: env: - - #Network interface inside target container - - name: NETWORK_INTERFACE - value: 'eth0' - - - name: NETWORK_PACKET_LOSS_PERCENTAGE - value: '100' - - name: TOTAL_CHAOS_DURATION value: '60' # in seconds + + - name: NETWORK_PACKET_LOSS_PERCENTAGE + value: '100' # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio @@ -39,3 +34,7 @@ spec: - name: SOCKET_PATH value: '/var/run/docker.sock' + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' + \ No newline at end of file diff --git a/charts/kafka/kafka-broker-disk-failure/engine.yaml b/charts/kafka/kafka-broker-disk-failure/engine.yaml index 7599a28..56b1690 100644 --- a/charts/kafka/kafka-broker-disk-failure/engine.yaml +++ b/charts/kafka/kafka-broker-disk-failure/engine.yaml @@ -18,6 +18,10 @@ spec: spec: components: env: + # set chaos duration (in sec) as desired + - name: TOTAL_CHAOS_DURATION + value: '60' + # choose based on available kafka broker replicas - name: KAFKA_REPLICATION_FACTOR value: '3' @@ -74,8 +78,4 @@ spec: # Uses 'disk-1' attached to the node on which it is scheduled - name: KAFKA_BROKER value: 'kafka-0' - - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '60' - \ No newline at end of file + \ No newline at end of file diff --git a/charts/kafka/kafka-broker-pod-failure/engine.yaml b/charts/kafka/kafka-broker-pod-failure/engine.yaml index e3d5a92..5a8b305 100644 --- a/charts/kafka/kafka-broker-pod-failure/engine.yaml +++ b/charts/kafka/kafka-broker-pod-failure/engine.yaml @@ -18,6 +18,10 @@ spec: spec: components: env: + # set chaos duration (in sec) as desired + - name: TOTAL_CHAOS_DURATION + value: '60' + # choose based on available kafka broker replicas - name: KAFKA_REPLICATION_FACTOR value: '3' @@ -60,10 +64,6 @@ spec: - name: ZOOKEEPER_PORT value: '2181' - # set chaos duration (in sec) as desired - - name: TOTAL_CHAOS_DURATION - value: '60' - # set chaos interval (in sec) as desired - name: CHAOS_INTERVAL value: '20' diff --git a/charts/kafka/kafka-broker-pod-failure/experiment.yaml b/charts/kafka/kafka-broker-pod-failure/experiment.yaml index 8886510..b07bad6 100644 --- a/charts/kafka/kafka-broker-pod-failure/experiment.yaml +++ b/charts/kafka/kafka-broker-pod-failure/experiment.yaml @@ -74,10 +74,6 @@ spec: - name: CHAOS_INTERVAL value: '5' - # provide the kill count - - name: KILL_COUNT - value: '' - ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE diff --git a/charts/kube-aws/ebs-loss-by-tag/engine.yaml b/charts/kube-aws/ebs-loss-by-tag/engine.yaml index 479cad6..a9212ef 100644 --- a/charts/kube-aws/ebs-loss-by-tag/engine.yaml +++ b/charts/kube-aws/ebs-loss-by-tag/engine.yaml @@ -26,3 +26,7 @@ spec: # provide the region name of the instance - name: REGION value: '' + + - name: VOLUME_AFFECTED_PERC + value: '' + \ No newline at end of file diff --git a/charts/kube-aws/ec2-terminate-by-tag/engine.yaml b/charts/kube-aws/ec2-terminate-by-tag/engine.yaml index 9a52d63..6ed309d 100644 --- a/charts/kube-aws/ec2-terminate-by-tag/engine.yaml +++ b/charts/kube-aws/ec2-terminate-by-tag/engine.yaml @@ -31,3 +31,7 @@ spec: # enable it if the target instance is a part of self-managed nodegroup. - name: MANAGED_NODEGROUP value: 'disable' + + # Target the percentage of instance filtered from tag + - name: INSTANCE_AFFECTED_PERC + value: '' diff --git a/charts/openebs/openebs-control-plane-chaos/engine.yaml b/charts/openebs/openebs-control-plane-chaos/engine.yaml index b04f8d0..308982d 100644 --- a/charts/openebs/openebs-control-plane-chaos/engine.yaml +++ b/charts/openebs/openebs-control-plane-chaos/engine.yaml @@ -16,15 +16,5 @@ spec: spec: components: env: - - name: OPENEBS_NAMESPACE - value: 'openebs' - - ## Period to wait before injection of chaos - - name: RAMP_TIME - value: '10' - - name: FORCE - value: '' - - - name: LIB - value: '' + value: '' \ No newline at end of file diff --git a/charts/openebs/openebs-control-plane-chaos/experiment.yaml b/charts/openebs/openebs-control-plane-chaos/experiment.yaml index 3125dd0..805f39b 100644 --- a/charts/openebs/openebs-control-plane-chaos/experiment.yaml +++ b/charts/openebs/openebs-control-plane-chaos/experiment.yaml @@ -70,7 +70,7 @@ spec: ## env var that describes the library used to execute the chaos ## default: litmus. Supported values: litmus, powerfulseal - name: LIB - value: '' + value: 'litmus' labels: name: openebs-control-plane-chaos diff --git a/charts/openebs/openebs-nfs-provisioner-kill/engine.yaml b/charts/openebs/openebs-nfs-provisioner-kill/engine.yaml index 306f023..012e6f9 100644 --- a/charts/openebs/openebs-nfs-provisioner-kill/engine.yaml +++ b/charts/openebs/openebs-nfs-provisioner-kill/engine.yaml @@ -16,13 +16,13 @@ spec: spec: components: env: + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '20' + - name: NFS_PROVISIONER_NAMESPACE value: 'app-nfs-ns' - ## Period to wait before injection of chaos - - name: RAMP_TIME - value: '10' - - name: NFS_PROVISIONER_LABEL value: 'app=nfs' diff --git a/charts/openebs/openebs-pool-container-failure/engine.yaml b/charts/openebs/openebs-pool-container-failure/engine.yaml index 12f1843..7fe9a33 100644 --- a/charts/openebs/openebs-pool-container-failure/engine.yaml +++ b/charts/openebs/openebs-pool-container-failure/engine.yaml @@ -18,6 +18,10 @@ spec: spec: components: env: + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '20' + - name: APP_PVC value: 'demo-nginx-claim' diff --git a/charts/openebs/openebs-pool-disk-loss/engine.yaml b/charts/openebs/openebs-pool-disk-loss/engine.yaml index 2d0bd7d..39c7ef8 100644 --- a/charts/openebs/openebs-pool-disk-loss/engine.yaml +++ b/charts/openebs/openebs-pool-disk-loss/engine.yaml @@ -17,7 +17,11 @@ spec: - name: openebs-pool-disk-loss spec: components: - env: + env: + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '60' + - name: APP_PVC value: 'demo-nginx-claim' @@ -25,14 +29,6 @@ spec: - name: CLOUD_PLATFORM 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 - name: PROJECT_ID value: 'litmus-demo-123' @@ -52,6 +48,4 @@ spec: # Enter the zone name - name: ZONE_NAME value: 'us-central1-a' - - - name: OPENEBS_NAMESPACE - value: 'openebs' \ No newline at end of file + \ No newline at end of file diff --git a/charts/openebs/openebs-pool-network-delay/engine.yaml b/charts/openebs/openebs-pool-network-delay/engine.yaml index 8456887..72aec3d 100644 --- a/charts/openebs/openebs-pool-network-delay/engine.yaml +++ b/charts/openebs/openebs-pool-network-delay/engine.yaml @@ -14,16 +14,12 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds + - name: APP_PVC value: 'demo-nginx-claim' - - name: OPENEBS_NAMESPACE - value: 'openebs' - # in milliseconds - name: NETWORK_DELAY value: '60000' - - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds - diff --git a/charts/openebs/openebs-pool-network-loss/engine.yaml b/charts/openebs/openebs-pool-network-loss/engine.yaml index 958eaf6..8843b98 100644 --- a/charts/openebs/openebs-pool-network-loss/engine.yaml +++ b/charts/openebs/openebs-pool-network-loss/engine.yaml @@ -17,18 +17,11 @@ spec: spec: components: env: - - name: FORCE - value: 'true' + - name: TOTAL_CHAOS_DURATION + value: '120' # in seconds - name: APP_PVC value: 'demo-nginx-claim' - - name: OPENEBS_NAMESPACE - value: 'openebs' - - name: NETWORK_PACKET_LOSS_PERCENTAGE value: '100' - - - name: TOTAL_CHAOS_DURATION - value: '120' # in seconds - diff --git a/charts/openebs/openebs-pool-pod-failure/engine.yaml b/charts/openebs/openebs-pool-pod-failure/engine.yaml index 224b282..cfc1490 100644 --- a/charts/openebs/openebs-pool-pod-failure/engine.yaml +++ b/charts/openebs/openebs-pool-pod-failure/engine.yaml @@ -18,8 +18,8 @@ spec: spec: components: env: - - name: FORCE - value: 'true' + - name: CHAOS_ITERATIONS + value: '2' - name: APP_PVC value: 'demo-nginx-claim' diff --git a/charts/openebs/openebs-target-container-failure/engine.yaml b/charts/openebs/openebs-target-container-failure/engine.yaml index 5250288..f082c2a 100644 --- a/charts/openebs/openebs-target-container-failure/engine.yaml +++ b/charts/openebs/openebs-target-container-failure/engine.yaml @@ -18,6 +18,10 @@ spec: spec: components: env: + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '20' + - name: TARGET_CONTAINER value: 'cstor-istgt' diff --git a/charts/openebs/openebs-target-network-delay/engine.yaml b/charts/openebs/openebs-target-network-delay/engine.yaml index faec98b..4681601 100644 --- a/charts/openebs/openebs-target-network-delay/engine.yaml +++ b/charts/openebs/openebs-target-network-delay/engine.yaml @@ -18,6 +18,9 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds + - name: TARGET_CONTAINER value: 'cstor-istgt' @@ -29,6 +32,4 @@ spec: - name: NETWORK_DELAY value: '30000' - - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds \ No newline at end of file + \ No newline at end of file diff --git a/charts/openebs/openebs-target-network-loss/engine.yaml b/charts/openebs/openebs-target-network-loss/engine.yaml index cfe2fc0..ba3b3f9 100644 --- a/charts/openebs/openebs-target-network-loss/engine.yaml +++ b/charts/openebs/openebs-target-network-loss/engine.yaml @@ -18,6 +18,9 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '120' # in seconds + - name: TARGET_CONTAINER value: 'cstor-istgt' @@ -26,6 +29,3 @@ spec: - name: DEPLOY_TYPE value: 'deployment' - - - name: TOTAL_CHAOS_DURATION - value: '120' # in seconds \ No newline at end of file diff --git a/charts/openebs/openebs-target-pod-failure/engine.yaml b/charts/openebs/openebs-target-pod-failure/engine.yaml index 152a90c..e014e9a 100644 --- a/charts/openebs/openebs-target-pod-failure/engine.yaml +++ b/charts/openebs/openebs-target-pod-failure/engine.yaml @@ -18,6 +18,9 @@ spec: spec: components: env: + - name: TOTAL_CHAOS_DURATION + value: '60' + - name: FORCE value: 'true' diff --git a/charts/vmware/vm-poweroff/experiment.yaml b/charts/vmware/vm-poweroff/experiment.yaml index 4b83a44..ffc6b5a 100644 --- a/charts/vmware/vm-poweroff/experiment.yaml +++ b/charts/vmware/vm-poweroff/experiment.yaml @@ -68,7 +68,6 @@ spec: - name: TOTAL_CHAOS_DURATION value: '30' - - name: LIB value: 'litmus'