* 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>
30 lines
757 B
YAML
30 lines
757 B
YAML
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: nginx-chaos
|
|
namespace: default
|
|
spec:
|
|
appinfo:
|
|
appns: 'default'
|
|
applabel: 'app=nginx'
|
|
appkind: 'deployment'
|
|
# It can be active/stop
|
|
engineState: 'active'
|
|
chaosServiceAccount: pod-delete-sa
|
|
experiments:
|
|
- name: pod-delete
|
|
spec:
|
|
components:
|
|
env:
|
|
# set chaos duration (in sec) as desired
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '30'
|
|
|
|
# set chaos interval (in sec) as desired
|
|
- name: CHAOS_INTERVAL
|
|
value: '10'
|
|
|
|
# pod failures without '--force' & default terminationGracePeriodSeconds
|
|
- name: FORCE
|
|
value: 'false'
|