feat(chart): Change experiment chart to use go runner (#254)

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
This commit is contained in:
UDIT GAURAV
2020-07-03 20:31:36 +05:30
committed by GitHub
parent b45c197ab5
commit f41e0d5ff2
17 changed files with 48 additions and 51 deletions

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: TOTAL_CHAOS_DURATION
value: '30'
- name: TARGET_CONTAINER
value: ''
- 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

View File

@@ -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: ''

View File

@@ -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'

View File

@@ -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)
## 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
## Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ''
## 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

View File

@@ -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: ''

View File

@@ -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: ''

View File

@@ -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: ''