* (feat)chaos-charts: adding chaosengine yamls Signed-off-by: aditya109 <adikid1996@gmail.com>
37 lines
946 B
YAML
37 lines
946 B
YAML
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: nginx-chaos
|
|
namespace: default
|
|
spec:
|
|
# It can be true/false
|
|
annotationCheck: 'true'
|
|
#ex. values: ns1:name=percona,ns2:run=nginx
|
|
auxiliaryAppInfo: ''
|
|
appinfo:
|
|
appns: 'default'
|
|
applabel: 'app=nginx'
|
|
appkind: 'deployment'
|
|
chaosServiceAccount: nginx-sa
|
|
monitoring: false
|
|
components:
|
|
runner:
|
|
image: 'litmuschaos/chaos-executor:1.0.0'
|
|
type: 'go'
|
|
# It can be delete/retain
|
|
jobCleanUpPolicy: 'delete'
|
|
experiments:
|
|
- name: pod-cpu-hog
|
|
spec:
|
|
components:
|
|
env:
|
|
- name: TARGET_CONTAINER
|
|
value: 'nginx'
|
|
#number of cpu cores to be consumed
|
|
#verify the resources the app has been launched with
|
|
- name: CPU_CORES
|
|
value: '1'
|
|
# in ms
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '60000'
|
|
|