Files
litmus-hub/experiments/generic/pod-cpu-hog-exec/engine.yaml
Amit Kumar Das 7adf5d35a1 Directory restructure to add scenarios and experiments (#559)
* Updated dir struture with scenarios and experiments dir

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* Added icons

Signed-off-by: Amit Kumar Das <amit.das@harness.io>
2022-07-15 17:30:39 +05:30

30 lines
769 B
YAML

apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: nginx-chaos
namespace: default
spec:
# It can be active/stop
engineState: 'active'
appinfo:
appns: 'default'
applabel: 'app=nginx'
appkind: 'deployment'
chaosServiceAccount: pod-cpu-hog-exec-sa
experiments:
- name: pod-cpu-hog-exec
spec:
components:
env:
- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds
#number of cpu cores to be consumed
#verify the resources the app has been launched with
- name: CPU_CORES
value: '1'
## Percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''