* chore(jobCleanUpPolicy): added retain as default jobCleanUpPolicy Signed-off-by: shubhamchaudhary <shubham@chaosnative.com> * chore(annotationCheck): Removed annotationCheck field Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
26 lines
618 B
YAML
26 lines
618 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-sa
|
|
experiments:
|
|
- name: pod-cpu-hog
|
|
spec:
|
|
components:
|
|
env:
|
|
#number of cpu cores to be consumed
|
|
#verify the resources the app has been launched with
|
|
- name: CPU_CORES
|
|
value: '1'
|
|
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '60' # in seconds |