Files
2023-06-05 13:15:56 +05:30

36 lines
907 B
YAML

---
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: spring-boot-chaos
namespace: default
spec:
appinfo:
appns: ''
applabel: ''
appkind: ''
# It can be active/stop
engineState: 'active'
chaosServiceAccount: spring-boot-memory-stress-sa
experiments:
- name: spring-boot-memory-stress
spec:
components:
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '30'
# it contains fraction of used cpu. 0.70 equals 70%.
# it supports value in range [0.01,0.95]
- name: MEMORY_FILL_FRACTION
value: '0.70'
# port of the spring boot application
- name: CM_PORT
value: ''
## percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''