diff --git a/charts/cassandra/cassandra-pod-delete/experiment.yaml b/charts/cassandra/cassandra-pod-delete/experiment.yaml index dc199f2..436bcb7 100644 --- a/charts/cassandra/cassandra-pod-delete/experiment.yaml +++ b/charts/cassandra/cassandra-pod-delete/experiment.yaml @@ -88,7 +88,7 @@ spec: - name: CASSANDRA_LIVENESS_CHECK value: '' - ## Period to wait before injection of chaos + ## Period to wait before and after injection of chaos - name: RAMP_TIME value: '' diff --git a/charts/cassandra/experiments.yaml b/charts/cassandra/experiments.yaml index 23136e3..467494c 100644 --- a/charts/cassandra/experiments.yaml +++ b/charts/cassandra/experiments.yaml @@ -90,7 +90,7 @@ spec: - name: CASSANDRA_LIVENESS_CHECK value: '' - ## Period to wait before injection of chaos + ## Period to wait before and after injection of chaos - name: RAMP_TIME value: '' diff --git a/charts/generic/container-kill/experiment.yaml b/charts/generic/container-kill/experiment.yaml index 9cc4249..8e65ad0 100644 --- a/charts/generic/container-kill/experiment.yaml +++ b/charts/generic/container-kill/experiment.yaml @@ -45,7 +45,7 @@ spec: - name: TARGET_CONTAINER value: '' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/disk-fill/experiment.yaml b/charts/generic/disk-fill/experiment.yaml index f508c3d..d3f6919 100644 --- a/charts/generic/disk-fill/experiment.yaml +++ b/charts/generic/disk-fill/experiment.yaml @@ -52,7 +52,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/disk-loss/experiment.yaml b/charts/generic/disk-loss/experiment.yaml index 3f15d41..ebb44fe 100644 --- a/charts/generic/disk-loss/experiment.yaml +++ b/charts/generic/disk-loss/experiment.yaml @@ -44,7 +44,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '15' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/kubelet-service-kill/experiment.yaml b/charts/generic/kubelet-service-kill/experiment.yaml index e63a3a4..578d1b9 100644 --- a/charts/generic/kubelet-service-kill/experiment.yaml +++ b/charts/generic/kubelet-service-kill/experiment.yaml @@ -51,7 +51,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '90' # in seconds - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/node-cpu-hog/experiment.yaml b/charts/generic/node-cpu-hog/experiment.yaml index b9220f1..e76424c 100644 --- a/charts/generic/node-cpu-hog/experiment.yaml +++ b/charts/generic/node-cpu-hog/experiment.yaml @@ -52,7 +52,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/node-drain/experiment.yaml b/charts/generic/node-drain/experiment.yaml index 12f6451..ee4f2fb 100644 --- a/charts/generic/node-drain/experiment.yaml +++ b/charts/generic/node-drain/experiment.yaml @@ -66,7 +66,7 @@ spec: - name: LIB value: 'litmus' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/node-memory-hog/experiment.yaml b/charts/generic/node-memory-hog/experiment.yaml index 4927451..67cf337 100644 --- a/charts/generic/node-memory-hog/experiment.yaml +++ b/charts/generic/node-memory-hog/experiment.yaml @@ -57,7 +57,7 @@ spec: - name: MEMORY_PERCENTAGE value: '90' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/pod-cpu-hog/engine.yaml b/charts/generic/pod-cpu-hog/engine.yaml index b24244f..6a124a5 100644 --- a/charts/generic/pod-cpu-hog/engine.yaml +++ b/charts/generic/pod-cpu-hog/engine.yaml @@ -35,4 +35,4 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' # in seconds - \ No newline at end of file + diff --git a/charts/generic/pod-cpu-hog/experiment.yaml b/charts/generic/pod-cpu-hog/experiment.yaml index 3c17651..ab0fdd3 100644 --- a/charts/generic/pod-cpu-hog/experiment.yaml +++ b/charts/generic/pod-cpu-hog/experiment.yaml @@ -29,34 +29,34 @@ spec: - "patch" - "update" - "delete" - image: "litmuschaos/ansible-runner:latest" + image: "litmuschaos/go-runner:latest" imagePullPolicy: Always args: - -c - - ansible-playbook ./experiments/generic/pod_cpu_hog/pod_cpu_hog_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 + - ./experiments/pod-cpu-hog command: - /bin/bash env: - - name: ANSIBLE_STDOUT_CALLBACK - value: 'default' - - - name: TARGET_CONTAINER - value: '' + - name: TOTAL_CHAOS_DURATION + value: '30' + + - name: CHAOS_INTERVAL + value: '10' + ## Number of CPU cores to stress - name: CPU_CORES value: '1' - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + ## Percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' - # Period to wait before injection of chaos in sec + ## Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' - name: LIB value: 'litmus' - - - name: LIB_IMAGE - value: 'litmuschaos/app-cpu-stress:latest' + labels: name: pod-cpu-hog diff --git a/charts/generic/pod-delete/experiment.yaml b/charts/generic/pod-delete/experiment.yaml index c1b1098..e8f68ae 100644 --- a/charts/generic/pod-delete/experiment.yaml +++ b/charts/generic/pod-delete/experiment.yaml @@ -51,7 +51,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '15' - # Period to wait before injection of chaos in sec + # Period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/pod-memory-hog/engine.yaml b/charts/generic/pod-memory-hog/engine.yaml index 69731ca..bd10142 100644 --- a/charts/generic/pod-memory-hog/engine.yaml +++ b/charts/generic/pod-memory-hog/engine.yaml @@ -29,7 +29,6 @@ spec: value: 'nginx' # Enter the amount of memory in megabytes to be consumed by the application pod - # default: 500 (Megabytes) - name: MEMORY_CONSUMPTION value: '500' diff --git a/charts/generic/pod-memory-hog/experiment.yaml b/charts/generic/pod-memory-hog/experiment.yaml index 370b860..7d89f49 100644 --- a/charts/generic/pod-memory-hog/experiment.yaml +++ b/charts/generic/pod-memory-hog/experiment.yaml @@ -1,3 +1,4 @@ +--- apiVersion: litmuschaos.io/v1alpha1 description: message: | @@ -29,38 +30,35 @@ spec: - "patch" - "update" - "delete" - image: "litmuschaos/ansible-runner:latest" - imagePullPolicy: Always + image: "litmuschaos/go-runner:latest" args: - -c - - ansible-playbook ./experiments/generic/pod_memory_hog/pod_memory_hog_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 + - ./experiments/pod-memory-hog command: - /bin/bash env: - - name: ANSIBLE_STDOUT_CALLBACK - value: 'default' + - name: TOTAL_CHAOS_DURATION + value: '30' - # Provide name of target container - # where chaos has to be injected - - name: TARGET_CONTAINER - value: '' + - name: CHAOS_INTERVAL + value: '10' - # Enter the amount of memory in megabytes to be consumed by the application pod - # default: 500 (Megabytes) - - name: MEMORY_CONSUMPTION - value: '500' + ## enter the amount of memory in megabytes to be consumed by the application pod + - name: MEMORY_CONSUMPTION + value: '500' - - name: TOTAL_CHAOS_DURATION - value: '60' # in seconds + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' - # 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: '' - - name: LIB - value: 'litmus' + ## env var that describes the library used to execute the chaos + ## default: litmus. Supported values: litmus, powerfulseal, chaoskube + - name: LIB + value: 'litmus' - - name: LIB_IMAGE - value: 'litmuschaos/app-memory-stress:latest' labels: - name: pod-memory-hog + name: pod-memory-hog \ No newline at end of file diff --git a/charts/generic/pod-network-corruption/experiment.yaml b/charts/generic/pod-network-corruption/experiment.yaml index c1871cc..ecfaf5e 100644 --- a/charts/generic/pod-network-corruption/experiment.yaml +++ b/charts/generic/pod-network-corruption/experiment.yaml @@ -56,7 +56,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' # in seconds - # Time period to wait before injection of chaos in sec + # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/pod-network-latency/experiment.yaml b/charts/generic/pod-network-latency/experiment.yaml index e835048..c8ec16e 100644 --- a/charts/generic/pod-network-latency/experiment.yaml +++ b/charts/generic/pod-network-latency/experiment.yaml @@ -56,7 +56,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' # in seconds - # Time period to wait before injection of chaos in sec + # Time period to wait before and after injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/pod-network-loss/experiment.yaml b/charts/generic/pod-network-loss/experiment.yaml index b7e6b37..b9a1ec0 100644 --- a/charts/generic/pod-network-loss/experiment.yaml +++ b/charts/generic/pod-network-loss/experiment.yaml @@ -56,7 +56,7 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' # in seconds - # ime period to wait before injection of chaos in sec + # ime period to wait before and after injection of chaos in sec - name: RAMP_TIME value: ''