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

View File

@@ -90,7 +90,7 @@ spec:
- name: CASSANDRA_LIVENESS_CHECK - name: CASSANDRA_LIVENESS_CHECK
value: '' value: ''
## Period to wait before injection of chaos ## Period to wait before and after injection of chaos
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''

View File

@@ -45,7 +45,7 @@ spec:
- name: TARGET_CONTAINER - name: TARGET_CONTAINER
value: '' value: ''
# Period to wait before injection of chaos in sec # Period to wait before and after injection of chaos in sec
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''

View File

@@ -52,7 +52,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -44,7 +44,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '15' 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -51,7 +51,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '90' # in seconds 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -52,7 +52,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -66,7 +66,7 @@ spec:
- name: LIB - name: LIB
value: 'litmus' 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -57,7 +57,7 @@ spec:
- name: MEMORY_PERCENTAGE - name: MEMORY_PERCENTAGE
value: '90' 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -29,34 +29,34 @@ spec:
- "patch" - "patch"
- "update" - "update"
- "delete" - "delete"
image: "litmuschaos/ansible-runner:latest" image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- -c - -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: command:
- /bin/bash - /bin/bash
env: env:
- name: ANSIBLE_STDOUT_CALLBACK - name: TOTAL_CHAOS_DURATION
value: 'default' value: '30'
- name: TARGET_CONTAINER - name: CHAOS_INTERVAL
value: '' value: '10'
## Number of CPU cores to stress
- name: CPU_CORES - name: CPU_CORES
value: '1' value: '1'
- name: TOTAL_CHAOS_DURATION ## Percentage of total pods to target
value: '60' # in seconds - name: PODS_AFFECTED_PERC
value: ''
# Period to wait before injection of chaos in sec ## Period to wait before and after injection of chaos in sec
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
- name: LIB_IMAGE
value: 'litmuschaos/app-cpu-stress:latest'
labels: labels:
name: pod-cpu-hog name: pod-cpu-hog

View File

@@ -51,7 +51,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '15' 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -29,7 +29,6 @@ spec:
value: 'nginx' value: 'nginx'
# Enter the amount of memory in megabytes to be consumed by the application pod # Enter the amount of memory in megabytes to be consumed by the application pod
# default: 500 (Megabytes)
- name: MEMORY_CONSUMPTION - name: MEMORY_CONSUMPTION
value: '500' value: '500'

View File

@@ -1,3 +1,4 @@
---
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description: description:
message: | message: |
@@ -29,38 +30,35 @@ spec:
- "patch" - "patch"
- "update" - "update"
- "delete" - "delete"
image: "litmuschaos/ansible-runner:latest" image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always
args: args:
- -c - -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: command:
- /bin/bash - /bin/bash
env: env:
- name: ANSIBLE_STDOUT_CALLBACK - name: TOTAL_CHAOS_DURATION
value: 'default' value: '30'
# Provide name of target container - name: CHAOS_INTERVAL
# where chaos has to be injected value: '10'
- name: TARGET_CONTAINER
value: ''
# Enter the amount of memory in megabytes to be consumed by the application pod ## enter the amount of memory in megabytes to be consumed by the application pod
# default: 500 (Megabytes) - name: MEMORY_CONSUMPTION
- name: MEMORY_CONSUMPTION value: '500'
value: '500'
- name: TOTAL_CHAOS_DURATION ## percentage of total pods to target
value: '60' # in seconds - name: PODS_AFFECTED_PERC
value: ''
# Period to wait before and after injection of chaos in sec ## Period to wait before and after injection of chaos in sec
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
- name: LIB ## env var that describes the library used to execute the chaos
value: 'litmus' ## default: litmus. Supported values: litmus, powerfulseal, chaoskube
- name: LIB
value: 'litmus'
- name: LIB_IMAGE
value: 'litmuschaos/app-memory-stress:latest'
labels: labels:
name: pod-memory-hog name: pod-memory-hog

View File

@@ -56,7 +56,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -56,7 +56,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds 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 - name: RAMP_TIME
value: '' value: ''

View File

@@ -56,7 +56,7 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds 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 - name: RAMP_TIME
value: '' value: ''