From 26c87550d7fb33192fdb6a439eccb2b591258476 Mon Sep 17 00:00:00 2001 From: Saranya-jena Date: Fri, 22 Sep 2023 13:58:05 +0530 Subject: [PATCH] updated the tags to latest Signed-off-by: Saranya-jena --- .../namespaced-scope-chaos/experiment.yaml | 4 +- .../experiment_cron.yaml | 4 +- experiments/node-cpu-hog/experiment.yaml | 8 +- experiments/node-cpu-hog/experiment_cron.yaml | 10 +-- experiments/node-memory-hog/experiment.yaml | 8 +- .../node-memory-hog/experiment_cron.yaml | 8 +- experiments/pod-cpu-hog/experiment.yaml | 4 +- experiments/pod-cpu-hog/experiment_cron.yaml | 8 +- experiments/pod-delete/experiment.yaml | 6 +- experiments/pod-delete/experiment_cron.yaml | 6 +- experiments/pod-memory-hog/experiment.yaml | 4 +- .../pod-memory-hog/experiment_cron.yaml | 4 +- faults/aws/aws-ssm-chaos-by-id/fault.yaml | 45 ++++++----- faults/aws/aws-ssm-chaos-by-tag/fault.yaml | 47 ++++++----- faults/aws/ebs-loss-by-id/fault.yaml | 29 ++++--- faults/aws/ebs-loss-by-tag/fault.yaml | 31 +++++--- faults/aws/ec2-stop-by-tag/fault.yaml | 35 +++++---- faults/aws/ec2-terminate-by-id/fault.yaml | 31 +++++--- faults/azure/azure-disk-loss/fault.yaml | 31 +++++--- faults/azure/azure-instance-stop/fault.yaml | 31 +++++--- .../gcp/gcp-vm-disk-loss-by-label/fault.yaml | 29 ++++--- faults/gcp/gcp-vm-disk-loss/fault.yaml | 31 +++++--- .../gcp-vm-instance-stop-by-label/fault.yaml | 31 +++++--- faults/gcp/gcp-vm-instance-stop/fault.yaml | 33 +++++--- faults/kubernetes/container-kill/fault.yaml | 39 ++++++---- faults/kubernetes/disk-fill/fault.yaml | 39 ++++++---- .../kubernetes/docker-service-kill/fault.yaml | 25 ++++-- .../kubelet-service-kill/fault.yaml | 25 ++++-- faults/kubernetes/node-cpu-hog/fault.yaml | 33 +++++--- faults/kubernetes/node-drain/fault.yaml | 23 ++++-- faults/kubernetes/node-io-stress/fault.yaml | 39 ++++++---- faults/kubernetes/node-memory-hog/fault.yaml | 35 +++++---- faults/kubernetes/node-poweroff/fault.yaml | 77 +++++++++++-------- faults/kubernetes/node-restart/fault.yaml | 29 ++++--- faults/kubernetes/node-taint/fault.yaml | 25 ++++-- faults/kubernetes/pod-autoscaler/fault.yaml | 21 +++-- faults/kubernetes/pod-cpu-hog-exec/fault.yaml | 29 ++++--- faults/kubernetes/pod-cpu-hog/fault.yaml | 41 ++++++---- faults/kubernetes/pod-delete/fault.yaml | 33 +++++--- faults/kubernetes/pod-dns-error/fault.yaml | 19 +++-- faults/kubernetes/pod-dns-spoof/fault.yaml | 19 +++-- faults/kubernetes/pod-http-latency/fault.yaml | 37 +++++---- .../pod-http-modify-body/fault.yaml | 41 ++++++---- .../pod-http-modify-header/fault.yaml | 39 ++++++---- .../kubernetes/pod-http-reset-peer/fault.yaml | 37 +++++---- .../pod-http-status-code/fault.yaml | 43 +++++++---- faults/kubernetes/pod-io-stress/fault.yaml | 43 +++++++---- .../kubernetes/pod-memory-hog-exec/fault.yaml | 29 ++++--- faults/kubernetes/pod-memory-hog/fault.yaml | 41 ++++++---- .../pod-network-corruption/fault.yaml | 45 ++++++----- .../pod-network-duplication/fault.yaml | 45 ++++++----- .../kubernetes/pod-network-latency/fault.yaml | 47 ++++++----- faults/kubernetes/pod-network-loss/fault.yaml | 45 ++++++----- .../pod-network-partition/fault.yaml | 31 +++++--- .../spring-boot-app-kill/fault.yaml | 27 ++++--- .../spring-boot-cpu-stress/fault.yaml | 31 +++++--- .../spring-boot-exceptions/fault.yaml | 33 +++++--- .../spring-boot/spring-boot-faults/fault.yaml | 51 +++++++----- .../spring-boot-latency/fault.yaml | 31 +++++--- .../spring-boot-memory-stress/fault.yaml | 31 +++++--- faults/vmware/vm-poweroff/fault.yaml | 25 ++++-- 61 files changed, 1111 insertions(+), 670 deletions(-) diff --git a/experiments/namespaced-scope-chaos/experiment.yaml b/experiments/namespaced-scope-chaos/experiment.yaml index d53ff5e..73273d9 100644 --- a/experiments/namespaced-scope-chaos/experiment.yaml +++ b/experiments/namespaced-scope-chaos/experiment.yaml @@ -71,7 +71,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -96,7 +96,7 @@ spec: - name: CHAOS_INTERVAL value: '5' - + labels: name: pod-delete container: diff --git a/experiments/namespaced-scope-chaos/experiment_cron.yaml b/experiments/namespaced-scope-chaos/experiment_cron.yaml index 89d5f1d..5f4fde0 100644 --- a/experiments/namespaced-scope-chaos/experiment_cron.yaml +++ b/experiments/namespaced-scope-chaos/experiment_cron.yaml @@ -75,7 +75,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -100,7 +100,7 @@ spec: - name: CHAOS_INTERVAL value: '5' - + labels: name: pod-delete container: diff --git a/experiments/node-cpu-hog/experiment.yaml b/experiments/node-cpu-hog/experiment.yaml index d35e7c5..4a63807 100644 --- a/experiments/node-cpu-hog/experiment.yaml +++ b/experiments/node-cpu-hog/experiment.yaml @@ -16,7 +16,7 @@ spec: - name: adminModeNamespace value: "litmus" - name: context - value: "node-cpu-hog_infra" + value: "node-cpu-hog_infra" templates: - name: argowf-chaos steps: @@ -72,7 +72,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -95,7 +95,7 @@ spec: # provide lib image - name: LIB_IMAGE - value: 'litmuschaos/go-runner:3.0.0-beta10' + value: 'litmuschaos/go-runner:latest' labels: name: node-cpu-hog @@ -137,7 +137,7 @@ spec: value: '60' # in seconds container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/experiments/node-cpu-hog/experiment_cron.yaml b/experiments/node-cpu-hog/experiment_cron.yaml index f23a962..d8b574b 100644 --- a/experiments/node-cpu-hog/experiment_cron.yaml +++ b/experiments/node-cpu-hog/experiment_cron.yaml @@ -20,7 +20,7 @@ spec: - name: adminModeNamespace value: "litmus" - name: context - value: "node-cpu-hog_infra" + value: "node-cpu-hog_infra" templates: - name: argowf-chaos steps: @@ -76,7 +76,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -99,7 +99,7 @@ spec: # provide lib image - name: LIB_IMAGE - value: 'litmuschaos/go-runner:3.0.0-beta10' + value: 'litmuschaos/go-runner:latest' labels: name: node-cpu-hog @@ -141,7 +141,7 @@ spec: value: '60' # in seconds container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: @@ -150,4 +150,4 @@ spec: args: [ "kubectl delete chaosengine kube-proxy-node-cpu-hog-chaos -n {{workflow.parameters.adminModeNamespace}}", - ] \ No newline at end of file + ] diff --git a/experiments/node-memory-hog/experiment.yaml b/experiments/node-memory-hog/experiment.yaml index 5e2837e..1003d46 100644 --- a/experiments/node-memory-hog/experiment.yaml +++ b/experiments/node-memory-hog/experiment.yaml @@ -16,7 +16,7 @@ spec: - name: adminModeNamespace value: "litmus" - name: context - value: "node-memory-hog_infra" + value: "node-memory-hog_infra" templates: - name: argowf-chaos steps: @@ -72,7 +72,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -95,7 +95,7 @@ spec: # provide lib image - name: LIB_IMAGE - value: 'litmuschaos/go-runner:3.0.0-beta10' + value: 'litmuschaos/go-runner:latest' labels: name: node-memory-hog @@ -137,7 +137,7 @@ spec: value: '60' # in seconds container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/experiments/node-memory-hog/experiment_cron.yaml b/experiments/node-memory-hog/experiment_cron.yaml index b5cc8c2..67ce99d 100644 --- a/experiments/node-memory-hog/experiment_cron.yaml +++ b/experiments/node-memory-hog/experiment_cron.yaml @@ -75,7 +75,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -94,7 +94,7 @@ spec: value: '' # provide lib image - name: LIB_IMAGE - value: 'litmuschaos/go-runner:3.0.0-beta10' + value: 'litmuschaos/go-runner:latest' labels: name: node-memory-hog container: @@ -133,7 +133,7 @@ spec: value: '60' # in seconds container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: image: litmuschaos/k8s:latest @@ -141,4 +141,4 @@ spec: args: [ "kubectl delete chaosengine kube-proxy-node-memory-hog-chaos -n {{workflow.parameters.adminModeNamespace}}", - ] \ No newline at end of file + ] diff --git a/experiments/pod-cpu-hog/experiment.yaml b/experiments/pod-cpu-hog/experiment.yaml index 448b2c4..40e7eb5 100644 --- a/experiments/pod-cpu-hog/experiment.yaml +++ b/experiments/pod-cpu-hog/experiment.yaml @@ -64,7 +64,7 @@ spec: - "patch" - "update" - "delete" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -143,7 +143,7 @@ spec: value: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')" container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/experiments/pod-cpu-hog/experiment_cron.yaml b/experiments/pod-cpu-hog/experiment_cron.yaml index 4ff0a8b..2925ff2 100644 --- a/experiments/pod-cpu-hog/experiment_cron.yaml +++ b/experiments/pod-cpu-hog/experiment_cron.yaml @@ -20,7 +20,7 @@ spec: - name: adminModeNamespace value: "litmus" - name: appNamespace - value: "kube-system" + value: "kube-system" templates: - name: argowf-chaos steps: @@ -68,7 +68,7 @@ spec: - "patch" - "update" - "delete" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -147,7 +147,7 @@ spec: value: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')" container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: @@ -156,4 +156,4 @@ spec: args: [ "kubectl delete chaosengine kube-proxy-pod-cpu-hog-chaos -n {{workflow.parameters.adminModeNamespace}}", - ] \ No newline at end of file + ] diff --git a/experiments/pod-delete/experiment.yaml b/experiments/pod-delete/experiment.yaml index 910bd7c..5e38c34 100644 --- a/experiments/pod-delete/experiment.yaml +++ b/experiments/pod-delete/experiment.yaml @@ -74,7 +74,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -99,7 +99,7 @@ spec: - name: CHAOS_INTERVAL value: '5' - + labels: name: pod-delete container: @@ -145,7 +145,7 @@ spec: value: "false" container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/experiments/pod-delete/experiment_cron.yaml b/experiments/pod-delete/experiment_cron.yaml index f7791ef..9016fee 100644 --- a/experiments/pod-delete/experiment_cron.yaml +++ b/experiments/pod-delete/experiment_cron.yaml @@ -78,7 +78,7 @@ spec: verbs: - "get" - "list" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -103,7 +103,7 @@ spec: - name: CHAOS_INTERVAL value: '5' - + labels: name: pod-delete container: @@ -149,7 +149,7 @@ spec: value: "false" container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/experiments/pod-memory-hog/experiment.yaml b/experiments/pod-memory-hog/experiment.yaml index 6ee6516..35e4d6f 100644 --- a/experiments/pod-memory-hog/experiment.yaml +++ b/experiments/pod-memory-hog/experiment.yaml @@ -64,7 +64,7 @@ spec: - "patch" - "update" - "delete" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" args: - -c - ./experiments -name pod-memory-hog @@ -142,7 +142,7 @@ spec: value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')" container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/experiments/pod-memory-hog/experiment_cron.yaml b/experiments/pod-memory-hog/experiment_cron.yaml index a1a2476..979365f 100644 --- a/experiments/pod-memory-hog/experiment_cron.yaml +++ b/experiments/pod-memory-hog/experiment_cron.yaml @@ -68,7 +68,7 @@ spec: - "patch" - "update" - "delete" - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" args: - -c - ./experiments -name pod-memory-hog @@ -146,7 +146,7 @@ spec: value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')" container: image: litmuschaos/litmus-checker:latest - args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"] + args: ["-file=/tmp/chaosengine.yaml", "-saveName=/tmp/engine-name"] - name: cleanup-chaos-resources container: diff --git a/faults/aws/aws-ssm-chaos-by-id/fault.yaml b/faults/aws/aws-ssm-chaos-by-id/fault.yaml index 91e0b4f..429cb6f 100644 --- a/faults/aws/aws-ssm-chaos-by-id/fault.yaml +++ b/faults/aws/aws-ssm-chaos-by-id/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,71 +61,71 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" - name: CHAOS_INTERVAL - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # Instance ID of the target EC2 instance # Multiple IDs can also be provided as comma separated values ex: id1,id2 - name: EC2_INSTANCE_ID - value: '' + value: "" - name: REGION - value: '' + value: "" # it defines the sequence of chaos execution for multiple target instances # supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" # Provide the path of AWS credentials mounted from secret - name: AWS_SHARED_CREDENTIALS_FILE - value: '/tmp/cloud_config.yml' + value: "/tmp/cloud_config.yml" # provide the number of workers for memory stress - name: NUMBER_OF_WORKERS - value: '1' + value: "1" # provide the percentage of available memory to stress - name: MEMORY_PERCENTAGE - value: '80' + value: "80" # provide the CPU chores to be consumed # 0 will consume all the available CPU cores - name: CPU_CORE - value: '0' + value: "0" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # Provide the name of SSM doc # if not using the default stress docs - name: DOCUMENT_NAME - value: 'LitmusChaos-AWS-SSM-Doc' + value: "LitmusChaos-AWS-SSM-Doc" # Provide the type of SSM doc # if not using the default stress docs - name: DOCUMENT_TYPE - value: 'Command' + value: "Command" # Provide the format of SSM doc # if not using the default stress docs - name: DOCUMENT_FORMAT - value: 'YAML' + value: "YAML" # Provide the path of SSM doc # if not using the default stress docs - name: DOCUMENT_PATH - value: 'Litmus-AWS-SSM-Docs-For-EC2-CPU-Hog.yml' + value: "Litmus-AWS-SSM-Docs-For-EC2-CPU-Hog.yml" # if you want to install dependencies to run default SSM docs - name: INSTALL_DEPENDENCIES - value: 'True' + value: "True" labels: name: aws-ssm-chaos-by-id diff --git a/faults/aws/aws-ssm-chaos-by-tag/fault.yaml b/faults/aws/aws-ssm-chaos-by-tag/fault.yaml index c726885..f258222 100644 --- a/faults/aws/aws-ssm-chaos-by-tag/fault.yaml +++ b/faults/aws/aws-ssm-chaos-by-tag/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,75 +61,75 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" - name: CHAOS_INTERVAL - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide tag of the target EC2 instances # ex: team:devops (key:value) - name: EC2_INSTANCE_TAG - value: '' + value: "" - name: REGION - value: '' + value: "" # it defines the sequence of chaos execution for multiple target instances # supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" # Provide the path of AWS credentials mounted from secret - name: AWS_SHARED_CREDENTIALS_FILE - value: '/tmp/cloud_config.yml' + value: "/tmp/cloud_config.yml" # percentage of total instance to target - name: INSTANCE_AFFECTED_PERC - value: '' + value: "" # provide the number of workers for memory stress - name: NUMBER_OF_WORKERS - value: '1' + value: "1" # provide the percentage of available memory to stress - name: MEMORY_PERCENTAGE - value: '80' + value: "80" # provide the CPU chores to comsumed # 0 will consume all the available CPU cores - name: CPU_CORE - value: '0' + value: "0" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # Provide the name of SSM doc # if not using the default stress docs - name: DOCUMENT_NAME - value: 'LitmusChaos-AWS-SSM-Doc' + value: "LitmusChaos-AWS-SSM-Doc" # Provide the type of SSM doc # if not using the default stress docs - name: DOCUMENT_TYPE - value: 'Command' + value: "Command" # Provide the format of SSM doc # if not using the default stress docs - name: DOCUMENT_FORMAT - value: 'YAML' + value: "YAML" # Provide the path of SSM doc # if not using the default stress docs - name: DOCUMENT_PATH - value: 'Litmus-AWS-SSM-Docs-For-EC2-CPU-Hog.yml' + value: "Litmus-AWS-SSM-Docs-For-EC2-CPU-Hog.yml" # if you want to install dependencies to run default SSM docs - name: INSTALL_DEPENDENCIES - value: 'True' + value: "True" labels: name: aws-ssm-chaos-by-tag diff --git a/faults/aws/ebs-loss-by-id/fault.yaml b/faults/aws/ebs-loss-by-id/fault.yaml index 5f2df48..4f9eb73 100644 --- a/faults/aws/ebs-loss-by-id/fault.yaml +++ b/faults/aws/ebs-loss-by-id/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,30 +61,30 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: EBS_VOLUME_ID - value: '' + value: "" - name: REGION - value: '' + value: "" - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # Provide the path of AWS credentials mounted from secret - name: AWS_SHARED_CREDENTIALS_FILE - value: '/tmp/cloud_config.yml' + value: "/tmp/cloud_config.yml" labels: name: ebs-loss-by-id diff --git a/faults/aws/ebs-loss-by-tag/fault.yaml b/faults/aws/ebs-loss-by-tag/fault.yaml index 770ad52..e588343 100644 --- a/faults/aws/ebs-loss-by-tag/fault.yaml +++ b/faults/aws/ebs-loss-by-tag/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,32 +61,32 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" - name: RAMP_TIME - value: '' + value: "" - name: EBS_VOLUME_TAG - value: '' + value: "" - name: REGION - value: '' + value: "" - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: VOLUME_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # Provide the path of AWS credentials mounted from secret - name: AWS_SHARED_CREDENTIALS_FILE - value: '/tmp/cloud_config.yml' + value: "/tmp/cloud_config.yml" labels: name: ebs-loss-by-tag diff --git a/faults/aws/ec2-stop-by-tag/fault.yaml b/faults/aws/ec2-stop-by-tag/fault.yaml index 1405f68..68665a0 100644 --- a/faults/aws/ec2-stop-by-tag/fault.yaml +++ b/faults/aws/ec2-stop-by-tag/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,42 +65,42 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # Provide a common tag to target ec2 instances - name: EC2_INSTANCE_TAG - value: '' + value: "" # enable it if the target instance is a part of self-managed nodegroup. - name: MANAGED_NODEGROUP - value: 'disable' + value: "disable" - name: REGION - value: '' + value: "" # Target the percentage of instance filtered from tag - name: INSTANCE_AFFECTED_PERC - value: '' + value: "" - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # Provide the path of AWS credentials mounted from secret - name: AWS_SHARED_CREDENTIALS_FILE - value: '/tmp/cloud_config.yml' + value: "/tmp/cloud_config.yml" - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: ec2-stop-by-tag diff --git a/faults/aws/ec2-terminate-by-id/fault.yaml b/faults/aws/ec2-terminate-by-id/fault.yaml index 5f207ec..4c6711c 100644 --- a/faults/aws/ec2-terminate-by-id/fault.yaml +++ b/faults/aws/ec2-terminate-by-id/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,36 +65,36 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # enable it if the target instance is a part of self-managed nodegroup. - name: MANAGED_NODEGROUP - value: 'disable' + value: "disable" # Instance ID of the target EC2 instance # Multiple IDs can also be provided as comma separated values ex: id1,id2 - name: EC2_INSTANCE_ID - value: '' + value: "" - name: REGION - value: '' + value: "" - name: SEQUENCE - value: 'parallel' + value: "parallel" # Provide the path of AWS credentials mounted from secret - name: AWS_SHARED_CREDENTIALS_FILE - value: '/tmp/cloud_config.yml' + value: "/tmp/cloud_config.yml" labels: name: ec2-terminate-by-id diff --git a/faults/azure/azure-disk-loss/fault.yaml b/faults/azure/azure-disk-loss/fault.yaml index 5d3a04f..9106ea1 100644 --- a/faults/azure/azure-disk-loss/fault.yaml +++ b/faults/azure/azure-disk-loss/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,37 +61,37 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide the resource group of the instance - name: RESOURCE_GROUP - value: '' + value: "" # accepts enable/disable, default is disable - name: SCALE_SET - value: '' + value: "" # provide the virtual disk names (comma separated if multiple) - name: VIRTUAL_DISK_NAMES - value: '' + value: "" # provide the sequence type for the run. Options: serial/parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" # provide the path to aks credentials mounted from secret - name: AZURE_AUTH_LOCATION - value: '/tmp/azure.auth' + value: "/tmp/azure.auth" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: azure-disk-loss diff --git a/faults/azure/azure-instance-stop/fault.yaml b/faults/azure/azure-instance-stop/fault.yaml index d833645..86a0b49 100644 --- a/faults/azure/azure-instance-stop/fault.yaml +++ b/faults/azure/azure-instance-stop/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,36 +61,36 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide the target instance name(s) (comma separated if multiple) - name: AZURE_INSTANCE_NAMES - value: '' + value: "" # provide the resource group of the instance - name: RESOURCE_GROUP - value: '' + value: "" # accepts enable/disable, default is disable - name: SCALE_SET - value: '' + value: "" # Provide the path of aks credentials mounted from secret - name: AZURE_AUTH_LOCATION - value: '/tmp/azure.auth' + value: "/tmp/azure.auth" - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: azure-instance-stop diff --git a/faults/gcp/gcp-vm-disk-loss-by-label/fault.yaml b/faults/gcp/gcp-vm-disk-loss-by-label/fault.yaml index 3869879..59c2220 100644 --- a/faults/gcp/gcp-vm-disk-loss-by-label/fault.yaml +++ b/faults/gcp/gcp-vm-disk-loss-by-label/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -49,35 +58,35 @@ spec: env: # set chaos duration (in sec) as desired - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" # set chaos interval (in sec) as desired - name: CHAOS_INTERVAL - value: '30' + value: "30" # set the GCP project id - name: GCP_PROJECT_ID - value: '' + value: "" # set the zone in which all the disks are created # all the disks must exist in the same zone - name: ZONES - value: '' + value: "" # set the label of the target disk volumes - name: DISK_VOLUME_LABEL - value: '' + value: "" # set the percentage value of the disks with the given label # which should be targeted as part of the chaos injection - name: DISK_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: gcp-vm-disk-loss-by-label diff --git a/faults/gcp/gcp-vm-disk-loss/fault.yaml b/faults/gcp/gcp-vm-disk-loss/fault.yaml index afb65a6..53b2d89 100644 --- a/faults/gcp/gcp-vm-disk-loss/fault.yaml +++ b/faults/gcp/gcp-vm-disk-loss/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -48,40 +57,40 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # parallel or serial; determines how chaos is injected - name: SEQUENCE - value: 'parallel' + value: "parallel" # set the GCP project id - name: GCP_PROJECT_ID - value: '' + value: "" # set the disk volume name(s) as comma seperated values # eg. volume1,volume2,... - name: DISK_VOLUME_NAMES - value: '' + value: "" # set the disk zone(s) as comma seperated values in the corresponding # order of DISK_VOLUME_NAME # eg. zone1,zone2,... - name: ZONES - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # parallel or serial; determines how chaos is injected - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: gcp-vm-disk-loss diff --git a/faults/gcp/gcp-vm-instance-stop-by-label/fault.yaml b/faults/gcp/gcp-vm-instance-stop-by-label/fault.yaml index 514641c..e8f6f96 100644 --- a/faults/gcp/gcp-vm-instance-stop-by-label/fault.yaml +++ b/faults/gcp/gcp-vm-instance-stop-by-label/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -53,39 +62,39 @@ spec: env: # set chaos duration (in sec) as desired - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" # set chaos interval (in sec) as desired - name: CHAOS_INTERVAL - value: '30' + value: "30" - name: SEQUENCE - value: 'parallel' + value: "parallel" # GCP project ID to which the VM instances belong - name: GCP_PROJECT_ID - value: '' + value: "" # Label of the target VM instance(s) - name: INSTANCE_LABEL - value: '' + value: "" # Zone in which the target VM instance(s) filtered by the label exist # all the instances should lie in a single zone - name: ZONES - value: '' + value: "" # enable it if the target instance is a part of a managed instance group - name: MANAGED_INSTANCE_GROUP - value: 'disable' + value: "disable" # set the percentage value of the instances with the given label # which should be targeted as part of the chaos injection - name: INSTANCE_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: gcp-vm-instance-stop-by-label diff --git a/faults/gcp/gcp-vm-instance-stop/fault.yaml b/faults/gcp/gcp-vm-instance-stop/fault.yaml index 78ae5a0..395cae2 100644 --- a/faults/gcp/gcp-vm-instance-stop/fault.yaml +++ b/faults/gcp/gcp-vm-instance-stop/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -43,7 +52,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -52,44 +61,44 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '30' + value: "30" # parallel or serial; determines how the VM instances are terminated, all at once or one at a time - name: SEQUENCE - value: 'parallel' + value: "parallel" # period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # enable or disable; shall be set to enable if the target instances are a part of a managed instance group - name: MANAGED_INSTANCE_GROUP - value: 'disable' + value: "disable" # Instance name of the target VM instance(s) # Multiple instance names can be provided as comma separated values ex: instance1,instance2 - name: VM_INSTANCE_NAMES - value: '' + value: "" # GCP project ID to which the VM instances belong - name: GCP_PROJECT_ID - value: '' + value: "" # Instance zone(s) of the target VM instance(s) # If more than one instance is targetted, provide zone for each in the order of their # respective instance name in VM_INSTANCE_NAME as comma separated values ex: zone1,zone2 - name: ZONES - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # parallel or serial; determines how chaos is injected - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: gcp-vm-instance-stop diff --git a/faults/kubernetes/container-kill/fault.yaml b/faults/kubernetes/container-kill/fault.yaml index 19d170e..65333ab 100644 --- a/faults/kubernetes/container-kill/fault.yaml +++ b/faults/kubernetes/container-kill/fault.yaml @@ -17,7 +17,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -58,7 +67,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -67,53 +76,53 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the chaos interval - name: CHAOS_INTERVAL - value: '10' + value: "10" - name: SIGNAL - value: 'SIGKILL' + value: "SIGKILL" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # provide the name of container runtime # it supports docker, containerd, crio - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the total chaos duration - name: TOTAL_CHAOS_DURATION - value: '20' + value: "20" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: container-kill diff --git a/faults/kubernetes/disk-fill/fault.yaml b/faults/kubernetes/disk-fill/fault.yaml index 22b8ae2..638e480 100644 --- a/faults/kubernetes/disk-fill/fault.yaml +++ b/faults/kubernetes/disk-fill/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,52 +77,52 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" - name: FILL_PERCENTAGE - value: '80' + value: "80" - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide the data block size # supported unit is KB - name: DATA_BLOCK_SIZE - value: '256' + value: "256" - name: TARGET_PODS - value: '' + value: "" - name: EPHEMERAL_STORAGE_MEBIBYTES - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" # Provide the container runtime path # Default set to docker container path - name: CONTAINER_PATH - value: '/var/lib/docker/containers' + value: "/var/lib/docker/containers" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: disk-fill diff --git a/faults/kubernetes/docker-service-kill/fault.yaml b/faults/kubernetes/docker-service-kill/fault.yaml index d2eb9ea..601a96c 100644 --- a/faults/kubernetes/docker-service-kill/fault.yaml +++ b/faults/kubernetes/docker-service-kill/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,25 +65,25 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '90' # in seconds + value: "90" # in seconds # Period to wait before injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'ubuntu:16.04' + value: "ubuntu:16.04" # provide the target node name - name: TARGET_NODE - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: docker-service-kill diff --git a/faults/kubernetes/kubelet-service-kill/fault.yaml b/faults/kubernetes/kubelet-service-kill/fault.yaml index 85570dd..2f9c56e 100644 --- a/faults/kubernetes/kubelet-service-kill/fault.yaml +++ b/faults/kubernetes/kubelet-service-kill/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,25 +65,25 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'ubuntu:16.04' + value: "ubuntu:16.04" # provide the target node name - name: TARGET_NODE - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: kubelet-service-kill diff --git a/faults/kubernetes/node-cpu-hog/fault.yaml b/faults/kubernetes/node-cpu-hog/fault.yaml index ba02794..15d3c3d 100644 --- a/faults/kubernetes/node-cpu-hog/fault.yaml +++ b/faults/kubernetes/node-cpu-hog/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,44 +65,44 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" ## ENTER THE NUMBER OF CORES OF CPU FOR CPU HOGGING ## OPTIONAL VALUE IN CASE OF EMPTY VALUE IT WILL TAKE NODE CPU CAPACITY - name: NODE_CPU_CORE - value: '' + value: "" ## LOAD CPU WITH GIVEN PERCENT LOADING FOR THE CPU STRESS WORKERS. ## 0 IS EFFECTIVELY A SLEEP (NO LOAD) AND 100 IS FULL LOADING - name: CPU_LOAD - value: '100' + value: "100" # ENTER THE COMMA SEPARATED TARGET NODES NAME - name: TARGET_NODES - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" ## percentage of total nodes to target - name: NODES_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" ## it defines the sequence of chaos execution for multiple target nodes ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: node-cpu-hog diff --git a/faults/kubernetes/node-drain/fault.yaml b/faults/kubernetes/node-drain/fault.yaml index 785c80b..e0de21d 100644 --- a/faults/kubernetes/node-drain/fault.yaml +++ b/faults/kubernetes/node-drain/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -51,7 +60,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list", "patch"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -60,20 +69,20 @@ spec: - /bin/bash env: - name: TARGET_NODE - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: node-drain diff --git a/faults/kubernetes/node-io-stress/fault.yaml b/faults/kubernetes/node-io-stress/fault.yaml index 75f8622..1adba99 100644 --- a/faults/kubernetes/node-io-stress/fault.yaml +++ b/faults/kubernetes/node-io-stress/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,56 +65,56 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '120' + value: "120" ## specify the size as percentage of free space on the file system ## default value 90 (in percentage) - name: FILESYSTEM_UTILIZATION_PERCENTAGE - value: '10' + value: "10" ## we can specify the size in Gigabyte (Gb) also in place of percentage of free space ## NOTE: for selecting this option FILESYSTEM_UTILIZATION_PERCENTAGE should be empty - name: FILESYSTEM_UTILIZATION_BYTES - value: '' + value: "" ## Number of core of CPU - name: CPU - value: '1' + value: "1" ## Total number of workers default value is 4 - name: NUMBER_OF_WORKERS - value: '4' + value: "4" ## Total number of VM workers - name: VM_WORKERS - value: '1' + value: "1" ## enter the comma separated target nodes name - name: TARGET_NODES - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" ## percentage of total nodes to target - name: NODES_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" ## it defines the sequence of chaos execution for multiple target nodes ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: node-io-stress diff --git a/faults/kubernetes/node-memory-hog/fault.yaml b/faults/kubernetes/node-memory-hog/fault.yaml index 1505e79..ed06bcd 100644 --- a/faults/kubernetes/node-memory-hog/fault.yaml +++ b/faults/kubernetes/node-memory-hog/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,47 +65,47 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '120' + value: "120" ## Specify the size as percent of total node capacity Ex: '30' ## NOTE: for selecting this option keep MEMORY_CONSUMPTION_MEBIBYTES empty - name: MEMORY_CONSUMPTION_PERCENTAGE - value: '' + value: "" ## Specify the amount of memory to be consumed in mebibytes ## NOTE: for selecting this option keep MEMORY_CONSUMPTION_PERCENTAGE empty - name: MEMORY_CONSUMPTION_MEBIBYTES - value: '' + value: "" - name: NUMBER_OF_WORKERS - value: '1' + value: "1" # ENTER THE COMMA SEPARATED TARGET NODES NAME - name: TARGET_NODES - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" ## percentage of total nodes to target - name: NODES_AFFECTED_PERC - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target nodes ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: node-memory-hog diff --git a/faults/kubernetes/node-poweroff/fault.yaml b/faults/kubernetes/node-poweroff/fault.yaml index 5825311..238f6a0 100644 --- a/faults/kubernetes/node-poweroff/fault.yaml +++ b/faults/kubernetes/node-poweroff/fault.yaml @@ -18,70 +18,79 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create","delete","get","list","patch","update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] - verbs: ["create","get","list","patch","update"] + verbs: ["create", "get", "list", "patch", "update"] # Fetch configmaps & secrets details and mount it to the experiment pod (if specified) - apiGroups: [""] - resources: ["configmaps","secrets"] - verbs: ["get","list",] + resources: ["configmaps", "secrets"] + verbs: ["get", "list"] # Track and get the runner, experiment, and helper pods log - apiGroups: [""] resources: ["pods/log"] - verbs: ["get","list","watch"] + verbs: ["get", "list", "watch"] # for creating and managing to execute comands inside target container - apiGroups: [""] resources: ["pods/exec"] - verbs: ["get","list","create"] + verbs: ["get", "list", "create"] # for configuring and monitor the experiment job by the chaos-runner pod - apiGroups: ["batch"] resources: ["jobs"] - verbs: ["create","list","get","delete","deletecollection"] + verbs: ["create", "list", "get", "delete", "deletecollection"] # for creation, status polling and deletion of litmus chaos resources used within a chaos workflow - apiGroups: ["litmuschaos.io"] - resources: ["chaosengines","chaosexperiments","chaosresults"] - verbs: ["create","list","get","patch","update","delete"] + resources: ["chaosengines", "chaosexperiments", "chaosresults"] + verbs: ["create", "list", "get", "patch", "update", "delete"] # for experiment to perform node status checks - apiGroups: [""] resources: ["nodes"] - verbs: ["get","list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + verbs: ["get", "list"] + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - - -c - - ./experiments -name node-restart + - -c + - ./experiments -name node-restart command: - - /bin/bash + - /bin/bash env: - - name: SSH_USER - value: 'root' + - name: SSH_USER + value: "root" - - name: TOTAL_CHAOS_DURATION - value: '60' + - name: TOTAL_CHAOS_DURATION + value: "60" - - name: REBOOT_COMMAND - value: '-o ServerAliveInterval=1 -o ServerAliveCountMax=1 "sudo systemctl poweroff --force --force" ; true' + - name: REBOOT_COMMAND + value: '-o ServerAliveInterval=1 -o ServerAliveCountMax=1 "sudo systemctl poweroff --force --force" ; true' - # Period to wait before and after injection of chaos in sec - - name: RAMP_TIME - value: '' + # Period to wait before and after injection of chaos in sec + - name: RAMP_TIME + value: "" - # provide lib image - - name: LIB_IMAGE - value: "litmuschaos/go-runner:3.0.0-beta10" + # provide lib image + - name: LIB_IMAGE + value: "litmuschaos/go-runner:latest" - # ENTER THE TARGET NODE NAME - - name: TARGET_NODE - value: '' + # ENTER THE TARGET NODE NAME + - name: TARGET_NODE + value: "" - - name: NODE_LABEL - value: '' + - name: NODE_LABEL + value: "" - # ENTER THE TARGET NODE IP - - name: TARGET_NODE_IP - value: '' + # ENTER THE TARGET NODE IP + - name: TARGET_NODE_IP + value: "" labels: name: node-poweroff diff --git a/faults/kubernetes/node-restart/fault.yaml b/faults/kubernetes/node-restart/fault.yaml index ce8c492..aa8d8f5 100644 --- a/faults/kubernetes/node-restart/fault.yaml +++ b/faults/kubernetes/node-restart/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,16 +65,16 @@ spec: - /bin/bash env: - name: SSH_USER - value: 'root' + value: "root" - name: REBOOT_COMMAND - value: 'sudo systemctl reboot; true' + value: "sudo systemctl reboot; true" - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide lib image - name: LIB_IMAGE @@ -73,17 +82,17 @@ spec: # ENTER THE TARGET NODE NAME - name: TARGET_NODE - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" # ENTER THE TARGET NODE IP - name: TARGET_NODE_IP - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: node-restart diff --git a/faults/kubernetes/node-taint/fault.yaml b/faults/kubernetes/node-taint/fault.yaml index 6dd935d..60aac57 100644 --- a/faults/kubernetes/node-taint/fault.yaml +++ b/faults/kubernetes/node-taint/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -51,7 +60,7 @@ spec: - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list", "patch", "update"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -60,25 +69,25 @@ spec: - /bin/bash env: - name: TARGET_NODE - value: '' + value: "" - name: NODE_LABEL - value: '' + value: "" - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # set taint label & effect # key=value:effect or key:effect - name: TAINTS - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: node-taint diff --git a/faults/kubernetes/pod-autoscaler/fault.yaml b/faults/kubernetes/pod-autoscaler/fault.yaml index f589d57..6e152aa 100644 --- a/faults/kubernetes/pod-autoscaler/fault.yaml +++ b/faults/kubernetes/pod-autoscaler/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,18 +65,18 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # Number of replicas to scale - name: REPLICA_COUNT - value: '5' + value: "5" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: pod-autoscaler diff --git a/faults/kubernetes/pod-cpu-hog-exec/fault.yaml b/faults/kubernetes/pod-cpu-hog-exec/fault.yaml index faaa46c..f3ea4dd 100644 --- a/faults/kubernetes/pod-cpu-hog-exec/fault.yaml +++ b/faults/kubernetes/pod-cpu-hog-exec/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,37 +77,37 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" ## Number of CPU cores to stress - name: CPU_CORES - value: '1' + value: "1" ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # The command to kill the chaos process - name: CHAOS_KILL_COMMAND value: "kill $(find /proc -name exe -lname '*/md5sum' 2>&1 | grep -v 'Permission denied' | awk -F/ '{print $(NF-1)}')" - name: TARGET_CONTAINER - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-cpu-hog-exec diff --git a/faults/kubernetes/pod-cpu-hog/fault.yaml b/faults/kubernetes/pod-cpu-hog/fault.yaml index 9fc054d..03722ff 100644 --- a/faults/kubernetes/pod-cpu-hog/fault.yaml +++ b/faults/kubernetes/pod-cpu-hog/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,58 +77,58 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" ## Number of CPU cores to stress - name: CPU_CORES - value: '1' + value: "1" ## LOAD CPU WITH GIVEN PERCENT LOADING FOR THE CPU STRESS WORKERS. ## 0 IS EFFECTIVELY A SLEEP (NO LOAD) AND 100 IS FULL LOADING - name: CPU_LOAD - value: '100' + value: "100" ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" ## It is used in pumba lib only - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" ## It is used in pumba lib only - name: STRESS_IMAGE - value: 'alexeiled/stress-ng:latest-ubuntu' + value: "alexeiled/stress-ng:latest-ubuntu" ## provide the cluster runtime - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" - name: TARGET_CONTAINER - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-cpu-hog diff --git a/faults/kubernetes/pod-delete/fault.yaml b/faults/kubernetes/pod-delete/fault.yaml index 5b6ba57..7db0c13 100644 --- a/faults/kubernetes/pod-delete/fault.yaml +++ b/faults/kubernetes/pod-delete/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,39 +77,39 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '15' + value: "15" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: FORCE - value: 'true' + value: "true" - name: CHAOS_INTERVAL - value: '5' + value: "5" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_CONTAINER - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-delete diff --git a/faults/kubernetes/pod-dns-error/fault.yaml b/faults/kubernetes/pod-dns-error/fault.yaml index 8985b6a..edad300 100644 --- a/faults/kubernetes/pod-dns-error/fault.yaml +++ b/faults/kubernetes/pod-dns-error/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" args: - -c - ./experiments -name pod-dns-error @@ -74,7 +83,7 @@ spec: value: "chaosnative/go-runner:ci" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: TOTAL_CHAOS_DURATION value: "60" # in seconds @@ -92,11 +101,11 @@ spec: # provide the name of container runtime, it supports docker, containerd, crio - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel diff --git a/faults/kubernetes/pod-dns-spoof/fault.yaml b/faults/kubernetes/pod-dns-spoof/fault.yaml index ff1acc0..e4309bc 100644 --- a/faults/kubernetes/pod-dns-spoof/fault.yaml +++ b/faults/kubernetes/pod-dns-spoof/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" args: - -c - ./experiments -name pod-dns-spoof @@ -74,7 +83,7 @@ spec: value: "chaosnative/go-runner:ci" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: TOTAL_CHAOS_DURATION value: "60" # in seconds @@ -92,11 +101,11 @@ spec: # provide the name of container runtime, it supports docker, containerd, crio - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel diff --git a/faults/kubernetes/pod-http-latency/fault.yaml b/faults/kubernetes/pod-http-latency/fault.yaml index 15c216d..ce04985 100644 --- a/faults/kubernetes/pod-http-latency/fault.yaml +++ b/faults/kubernetes/pod-http-latency/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,14 +77,14 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" - name: LATENCY - value: '2000' #in ms + value: "2000" #in ms # port of the target service - name: TARGET_SERVICE_PORT @@ -96,40 +105,40 @@ spec: value: "eth0" - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-http-latency diff --git a/faults/kubernetes/pod-http-modify-body/fault.yaml b/faults/kubernetes/pod-http-modify-body/fault.yaml index 66d82fb..13cccf1 100644 --- a/faults/kubernetes/pod-http-modify-body/fault.yaml +++ b/faults/kubernetes/pod-http-modify-body/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,26 +77,26 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" # provide the body string to overwrite the response body # if no value is provided, response will be an empty body. - name: RESPONSE_BODY - value: '' + value: "" # provide the encoding type for the response body # currently supported value are gzip, deflate # if empty no encoding will be applied - name: CONTENT_ENCODING - value: '' + value: "" # provide the content type for the response body - name: CONTENT_TYPE - value: 'text/plain' + value: "text/plain" # port of the target service - name: TARGET_SERVICE_PORT @@ -108,40 +117,40 @@ spec: value: "eth0" - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-http-modify-body diff --git a/faults/kubernetes/pod-http-modify-header/fault.yaml b/faults/kubernetes/pod-http-modify-header/fault.yaml index 6d6164d..18f5980 100644 --- a/faults/kubernetes/pod-http-modify-header/fault.yaml +++ b/faults/kubernetes/pod-http-modify-header/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,20 +77,20 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" # map of headers to modify/add; Eg: {"X-Litmus-Test-Header": "X-Litmus-Test-Value"} # to remove a header, just set the value to ""; Eg: {"X-Litmus-Test-Header": ""} - name: HEADERS_MAP - value: '{}' + value: "{}" # whether to modify response headers or request headers. Accepted values: request, response - name: HEADER_MODE - value: 'response' + value: "response" # port of the target service - name: TARGET_SERVICE_PORT @@ -102,40 +111,40 @@ spec: value: "eth0" - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-http-modify-header diff --git a/faults/kubernetes/pod-http-reset-peer/fault.yaml b/faults/kubernetes/pod-http-reset-peer/fault.yaml index c3bf945..fa7e3ba 100644 --- a/faults/kubernetes/pod-http-reset-peer/fault.yaml +++ b/faults/kubernetes/pod-http-reset-peer/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,15 +77,15 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" # reset timeout specifies after how much duration to reset the connection - name: RESET_TIMEOUT - value: '0' #in ms + value: "0" #in ms # port of the target service - name: TARGET_SERVICE_PORT @@ -97,40 +106,40 @@ spec: value: "eth0" - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-http-reset-peer diff --git a/faults/kubernetes/pod-http-status-code/fault.yaml b/faults/kubernetes/pod-http-status-code/fault.yaml index 20736f4..088b8d7 100644 --- a/faults/kubernetes/pod-http-status-code/fault.yaml +++ b/faults/kubernetes/pod-http-status-code/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,18 +77,18 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" # modified status code for the HTTP response # if no value is provided, a random status code from the supported code list will selected # if an invalid status code is provided, the experiment will fail # supported status code list: [200, 201, 202, 204, 300, 301, 302, 304, 307, 400, 401, 403, 404, 500, 501, 502, 503, 504] - name: STATUS_CODE - value: '' + value: "" # whether to modify the body as per the status code provided - name: "MODIFY_RESPONSE_BODY" @@ -87,17 +96,17 @@ spec: # provide the body string to overwrite the response body. This will be used only if MODIFY_RESPONSE_BODY is set to true - name: RESPONSE_BODY - value: '' + value: "" # provide the encoding type for the response body # currently supported value are gzip, deflate # if empty no encoding will be applied - name: CONTENT_ENCODING - value: '' + value: "" # provide the content type for the response body - name: CONTENT_TYPE - value: 'text/plain' + value: "text/plain" # port of the target service - name: TARGET_SERVICE_PORT @@ -118,40 +127,40 @@ spec: value: "eth0" - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-http-status-code diff --git a/faults/kubernetes/pod-io-stress/fault.yaml b/faults/kubernetes/pod-io-stress/fault.yaml index 37c9cfe..8441093 100644 --- a/faults/kubernetes/pod-io-stress/fault.yaml +++ b/faults/kubernetes/pod-io-stress/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,64 +77,64 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '120' + value: "120" ## specify the size as percentage of free space on the file system ## default value 90 (in percentage) - name: FILESYSTEM_UTILIZATION_PERCENTAGE - value: '10' + value: "10" ## we can specify the size in Gigabyte (Gb) also in place of percentage of free space ## NOTE: for selecting this option FILESYSTEM_UTILIZATION_PERCENTAGE should be empty - name: FILESYSTEM_UTILIZATION_BYTES - value: '' + value: "" ## Total number of workers default value is 4 - name: NUMBER_OF_WORKERS - value: '4' + value: "4" ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" # provide volume mount path - name: VOLUME_MOUNT_PATH - value: '' + value: "" - name: TARGET_CONTAINER - value: '' + value: "" ## specify the comma separated target pods - name: TARGET_PODS - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" # Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" ## provide the cluster runtime - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-io-stress diff --git a/faults/kubernetes/pod-memory-hog-exec/fault.yaml b/faults/kubernetes/pod-memory-hog-exec/fault.yaml index f1ae477..142f019 100644 --- a/faults/kubernetes/pod-memory-hog-exec/fault.yaml +++ b/faults/kubernetes/pod-memory-hog-exec/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,19 +77,19 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" ## enter the amount of memory in megabytes to be consumed by the application pod - name: MEMORY_CONSUMPTION - value: '500' + value: "500" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" # The command to kill the chaos process - name: CHAOS_KILL_COMMAND @@ -89,16 +98,16 @@ spec: ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: TARGET_CONTAINER - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" labels: name: pod-memory-hog-exec diff --git a/faults/kubernetes/pod-memory-hog/fault.yaml b/faults/kubernetes/pod-memory-hog/fault.yaml index 385508b..f3a4667 100644 --- a/faults/kubernetes/pod-memory-hog/fault.yaml +++ b/faults/kubernetes/pod-memory-hog/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,57 +77,57 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" ## enter the amount of memory in megabytes to be consumed by the application pod - name: MEMORY_CONSUMPTION - value: '500' + value: "500" ## Number of workers to perform stress - name: NUMBER_OF_WORKERS - value: '1' + value: "1" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" ## It is used in pumba lib only - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" ## It is used in pumba lib only - name: STRESS_IMAGE - value: 'alexeiled/stress-ng:latest-ubuntu' + value: "alexeiled/stress-ng:latest-ubuntu" ## provide the cluster runtime - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: TARGET_CONTAINER - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" labels: name: pod-memory-hog diff --git a/faults/kubernetes/pod-network-corruption/fault.yaml b/faults/kubernetes/pod-network-corruption/fault.yaml index 9f4c653..3e23a07 100644 --- a/faults/kubernetes/pod-network-corruption/fault.yaml +++ b/faults/kubernetes/pod-network-corruption/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,66 +77,66 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" - name: NETWORK_INTERFACE - value: 'eth0' + value: "eth0" - name: TC_IMAGE - value: 'gaiadocker/iproute2' + value: "gaiadocker/iproute2" - name: NETWORK_PACKET_CORRUPTION_PERCENTAGE - value: '100' #in PERCENTAGE + value: "100" #in PERCENTAGE - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the destination ips # chaos injection will be triggered for these destination ips - name: DESTINATION_IPS - value: '' + value: "" # provide the destination hosts # chaos injection will be triggered for these destination hosts - name: DESTINATION_HOSTS - value: '' + value: "" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-network-corruption diff --git a/faults/kubernetes/pod-network-duplication/fault.yaml b/faults/kubernetes/pod-network-duplication/fault.yaml index 4014dec..6478737 100644 --- a/faults/kubernetes/pod-network-duplication/fault.yaml +++ b/faults/kubernetes/pod-network-duplication/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,64 +77,64 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' + value: "60" - name: RAMP_TIME - value: '' + value: "" - name: TARGET_CONTAINER - value: '' + value: "" - name: TC_IMAGE - value: 'gaiadocker/iproute2' + value: "gaiadocker/iproute2" - name: NETWORK_INTERFACE - value: 'eth0' + value: "eth0" - name: NETWORK_PACKET_DUPLICATION_PERCENTAGE - value: '100' # in percentage + value: "100" # in percentage - name: TARGET_PODS - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # provide the destination ips # chaos injection will be triggered for these destination ips - name: DESTINATION_IPS - value: '' + value: "" # provide the destination hosts # chaos injection will be triggered for these destination hosts - name: DESTINATION_HOSTS - value: '' + value: "" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-network-duplication diff --git a/faults/kubernetes/pod-network-latency/fault.yaml b/faults/kubernetes/pod-network-latency/fault.yaml index 3e3ff5b..92d92bb 100644 --- a/faults/kubernetes/pod-network-latency/fault.yaml +++ b/faults/kubernetes/pod-network-latency/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,69 +77,69 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" - name: NETWORK_INTERFACE - value: 'eth0' + value: "eth0" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" - name: TC_IMAGE - value: 'gaiadocker/iproute2' + value: "gaiadocker/iproute2" - name: NETWORK_LATENCY - value: '2000' #in ms + value: "2000" #in ms - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: JITTER - value: '0' + value: "0" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: TARGET_PODS - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # provide the destination ips # chaos injection will be triggered for these destination ips - name: DESTINATION_IPS - value: '' + value: "" # provide the destination hosts # chaos injection will be triggered for these destination hosts - name: DESTINATION_HOSTS - value: '' + value: "" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-network-latency diff --git a/faults/kubernetes/pod-network-loss/fault.yaml b/faults/kubernetes/pod-network-loss/fault.yaml index 6bfc055..5095fe9 100644 --- a/faults/kubernetes/pod-network-loss/fault.yaml +++ b/faults/kubernetes/pod-network-loss/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,66 +77,66 @@ spec: - /bin/bash env: - name: TARGET_CONTAINER - value: '' + value: "" # provide lib image - name: LIB_IMAGE - value: 'chaosnative/go-runner:ci' + value: "chaosnative/go-runner:ci" - name: NETWORK_INTERFACE - value: 'eth0' + value: "eth0" - name: TC_IMAGE - value: 'gaiadocker/iproute2' + value: "gaiadocker/iproute2" - name: NETWORK_PACKET_LOSS_PERCENTAGE - value: '100' #in PERCENTAGE + value: "100" #in PERCENTAGE - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" - name: TARGET_PODS - value: '' + value: "" # To select pods on specific node(s) - name: NODE_LABEL - value: '' + value: "" # provide the name of container runtime # for litmus LIB, it supports docker, containerd, crio # for pumba LIB, it supports docker only - name: CONTAINER_RUNTIME - value: 'containerd' + value: "containerd" # provide the destination ips # chaos injection will be triggered for these destination ips - name: DESTINATION_IPS - value: '' + value: "" # provide the destination hosts # chaos injection will be triggered for these destination hosts - name: DESTINATION_HOSTS - value: '' + value: "" # provide the socket file path - name: SOCKET_PATH - value: '/run/containerd/containerd.sock' + value: "/run/containerd/containerd.sock" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: pod-network-loss diff --git a/faults/kubernetes/pod-network-partition/fault.yaml b/faults/kubernetes/pod-network-partition/fault.yaml index 65f9a2c..6fbc1e4 100644 --- a/faults/kubernetes/pod-network-partition/fault.yaml +++ b/faults/kubernetes/pod-network-partition/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -47,7 +56,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -56,41 +65,41 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + value: "60" # in seconds # time period to wait before and after injection of chaos in sec - name: RAMP_TIME - value: '' + value: "" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" # provide the destination ips # chaos injection will be triggered for these destination ips - name: DESTINATION_IPS - value: '' + value: "" # provide the destination hosts # chaos injection will be triggered for these destination hosts - name: DESTINATION_HOSTS - value: '' + value: "" # provide network policy type # support ingress, egress, all values - name: POLICY_TYPES - value: 'all' + value: "all" # provide labels of the destination pods - name: POD_SELECTOR - value: '' + value: "" # provide labels the destination namespaces - name: NAMESPACE_SELECTOR - value: '' + value: "" # provide comma separated ports - name: PORTS - value: '' + value: "" labels: name: pod-network-partition diff --git a/faults/spring-boot/spring-boot-app-kill/fault.yaml b/faults/spring-boot/spring-boot-app-kill/fault.yaml index 49aea86..c18511b 100644 --- a/faults/spring-boot/spring-boot-app-kill/fault.yaml +++ b/faults/spring-boot/spring-boot-app-kill/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -49,34 +58,34 @@ spec: env: # port of the spring boot application - name: CM_PORT - value: '' + value: "" #it contains number of requests are to be attacked # n value means nth request will be affected - name: CM_LEVEL - value: '1' + value: "1" # it limits watched packages/classes/methods - name: CM_WATCHED_CUSTOM_SERVICES - value: '' + value: "" # provide name of watcher # it supports controller, restController, service, repository, component, webClient - name: CM_WATCHERS - value: 'restController' + value: "restController" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos - name: RAMP_TIME - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: spring-boot-app-kill diff --git a/faults/spring-boot/spring-boot-cpu-stress/fault.yaml b/faults/spring-boot/spring-boot-cpu-stress/fault.yaml index 433ce79..a86043d 100644 --- a/faults/spring-boot/spring-boot-cpu-stress/fault.yaml +++ b/faults/spring-boot/spring-boot-cpu-stress/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -50,41 +59,41 @@ spec: # it contains fraction of cpu to be stressed(0.95 equals 95%) # it supports value in range [0.1,1.0] - name: CPU_LOAD_FRACTION - value: '0.9' + value: "0.9" # port of the spring boot application - name: CM_PORT - value: '' + value: "" #it contains number of requests are to be attacked # n value means nth request will be affected - name: CM_LEVEL - value: '1' + value: "1" # it limits watched packages/classes/methods - name: CM_WATCHED_CUSTOM_SERVICES - value: '' + value: "" # provide name of watcher # it supports controller, restController, service, repository, component, webClient - name: CM_WATCHERS - value: 'restController' + value: "restController" - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos - name: RAMP_TIME - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: spring-boot-cpu-stress diff --git a/faults/spring-boot/spring-boot-exceptions/fault.yaml b/faults/spring-boot/spring-boot-exceptions/fault.yaml index 5a0e342..1346377 100644 --- a/faults/spring-boot/spring-boot-exceptions/fault.yaml +++ b/faults/spring-boot/spring-boot-exceptions/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -49,45 +58,45 @@ spec: env: # Type of raised exception - name: CM_EXCEPTIONS_TYPE - value: 'java.lang.IllegalArgumentException' + value: "java.lang.IllegalArgumentException" # Argument of raised exception - name: CM_EXCEPTIONS_ARGUMENTS - value: 'java.lang.String:custom illegal argument exception' + value: "java.lang.String:custom illegal argument exception" # port of the spring boot application - name: CM_PORT - value: '' + value: "" #it contains number of requests are to be attacked # n value means nth request will be affected - name: CM_LEVEL - value: '1' + value: "1" # it limits watched packages/classes/methods - name: CM_WATCHED_CUSTOM_SERVICES - value: '' + value: "" # provide name of watcher # it supports controller, restController, service, repository, component, webClient - name: CM_WATCHERS - value: 'restController' + value: "restController" - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos - name: RAMP_TIME - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: spring-boot-exceptions diff --git a/faults/spring-boot/spring-boot-faults/fault.yaml b/faults/spring-boot/spring-boot-faults/fault.yaml index 2702c43..cefa263 100644 --- a/faults/spring-boot/spring-boot-faults/fault.yaml +++ b/faults/spring-boot/spring-boot-faults/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -49,84 +58,84 @@ spec: env: # it enables spring app-kill fault - name: CM_KILL_APPLICATION_ACTIVE - value: '' + value: "" - # it enables spring-boot latency fault + # it enables spring-boot latency fault - name: CM_LATENCY_ACTIVE - value: '' + value: "" # provide the latency (ms) # it is applicable when latency is active - name: LATENCY - value: '2000' + value: "2000" # it enables spring-boot memory stress fault - name: CM_MEMORY_ACTIVE - value: '' + value: "" # it contains fraction of memory to be stressed(0.70 equals 70%) # it supports value in range [0.01,0.95] # it is applicable when memory is active - name: MEMORY_FILL_FRACTION - value: '0.70' + value: "0.70" # it enables spring-boot cpu stress fault - name: CM_CPU_ACTIVE - value: '' + value: "" # it contains fraction of cpu to be stressed(0.95 equals 95%) # it supports value in range [0.1,1.0] # it is applicable when cpu is active - name: CPU_LOAD_FRACTION - value: '0.9' + value: "0.9" # it enables spring-boot exceptions fault - name: CM_EXCEPTIONS_ACTIVE - value: '' + value: "" # Type of raised exception # it is applicable when exceptions is active - name: CM_EXCEPTIONS_TYPE - value: 'java.lang.IllegalArgumentException' + value: "java.lang.IllegalArgumentException" # Argument of raised exception # it is applicable when exceptions is active - name: CM_EXCEPTIONS_ARGUMENTS - value: 'java.lang.String:custom illegal argument exception' + value: "java.lang.String:custom illegal argument exception" # port of the spring boot application - name: CM_PORT - value: '' + value: "" #it contains number of requests are to be attacked # n value means nth request will be affected - name: CM_LEVEL - value: '1' + value: "1" # it limits watched packages/classes/methods - name: CM_WATCHED_CUSTOM_SERVICES - value: '' + value: "" # provide name of watcher # it supports controller, restController, service, repository, component, webClient - name: CM_WATCHERS - value: 'restController' + value: "restController" - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos - name: RAMP_TIME - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: spring-boot-faults diff --git a/faults/spring-boot/spring-boot-latency/fault.yaml b/faults/spring-boot/spring-boot-latency/fault.yaml index 40cd813..149f8c2 100644 --- a/faults/spring-boot/spring-boot-latency/fault.yaml +++ b/faults/spring-boot/spring-boot-latency/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -49,41 +58,41 @@ spec: env: # provide the latency (ms) - name: LATENCY - value: '2000' + value: "2000" # port of the spring boot application - name: CM_PORT - value: '' + value: "" # it contains number of requests are to be attacked # n value means nth request will be affected - name: CM_LEVEL - value: '1' + value: "1" # it limits watched packages/classes/methods - name: CM_WATCHED_CUSTOM_SERVICES - value: '' + value: "" # provide name of watcher # it supports controller, restController, service, repository, component, webClient - name: CM_WATCHERS - value: 'restController' + value: "restController" - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos - name: RAMP_TIME - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: spring-boot-latency diff --git a/faults/spring-boot/spring-boot-memory-stress/fault.yaml b/faults/spring-boot/spring-boot-memory-stress/fault.yaml index 06b2b88..43ba3c1 100644 --- a/faults/spring-boot/spring-boot-memory-stress/fault.yaml +++ b/faults/spring-boot/spring-boot-memory-stress/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -39,7 +48,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -50,41 +59,41 @@ spec: # it contains fraction of memory to be stressed(0.70 equals 70%) # it supports value in range [0.01,0.95] - name: MEMORY_FILL_FRACTION - value: '0.70' + value: "0.70" # port of the spring boot application - name: CM_PORT - value: '' + value: "" # it contains number of requests are to be attacked # n value means nth request will be affected - name: CM_LEVEL - value: '1' + value: "1" # it limits watched packages/classes/methods - name: CM_WATCHED_CUSTOM_SERVICES - value: '' + value: "" # provide name of watcher # it supports controller, restController, service, repository, component, webClient - name: CM_WATCHERS - value: 'restController' + value: "restController" - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" ## percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '' + value: "" ## Period to wait before and after injection of chaos - name: RAMP_TIME - value: '' + value: "" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel - name: SEQUENCE - value: 'parallel' + value: "parallel" labels: name: spring-boot-memory-stress diff --git a/faults/vmware/vm-poweroff/fault.yaml b/faults/vmware/vm-poweroff/fault.yaml index dc1d20a..5cd52ba 100644 --- a/faults/vmware/vm-poweroff/fault.yaml +++ b/faults/vmware/vm-poweroff/fault.yaml @@ -18,7 +18,16 @@ spec: # Create and monitor the experiment & helper pods - apiGroups: [""] resources: ["pods"] - verbs: ["create", "delete", "get", "list", "patch", "update", "deletecollection"] + verbs: + [ + "create", + "delete", + "get", + "list", + "patch", + "update", + "deletecollection", + ] # Performs CRUD operations on the events inside chaosengine and chaosresult - apiGroups: [""] resources: ["events"] @@ -59,7 +68,7 @@ spec: - apiGroups: ["litmuschaos.io"] resources: ["chaosengines", "chaosexperiments", "chaosresults"] verbs: ["create", "list", "get", "patch", "update", "delete"] - image: "litmuschaos/go-runner:3.0.0-beta10" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c @@ -68,13 +77,13 @@ spec: - /bin/bash env: - name: TOTAL_CHAOS_DURATION - value: '30' + value: "30" - name: CHAOS_INTERVAL - value: '10' + value: "10" - name: RAMP_TIME - value: '' + value: "" - name: VCENTERSERVER valueFrom: @@ -95,13 +104,13 @@ spec: key: VCENTERPASS - name: APP_VM_MOIDS - value: '' + value: "" - name: SEQUENCE - value: 'parallel' + value: "parallel" - name: DEFAULT_HEALTH_CHECK - value: 'false' + value: "false" labels: name: vmware-vm-poweroff