* chore(spring-boot): adding spring boot charts Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: spring-boot-chaos
|
|
namespace: default
|
|
spec:
|
|
appinfo:
|
|
appns: 'default'
|
|
applabel: 'app=spring-boot'
|
|
appkind: 'deployment'
|
|
# It can be active/stop
|
|
engineState: 'active'
|
|
chaosServiceAccount: spring-boot-exceptions-sa
|
|
experiments:
|
|
- name: spring-boot-exceptions
|
|
spec:
|
|
components:
|
|
env:
|
|
# set chaos duration (in sec) as desired
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '30'
|
|
|
|
# Type of raised exception
|
|
- name: CM_EXCEPTIONS_TYPE
|
|
value: 'java.lang.IllegalArgumentException'
|
|
|
|
# Argument of raised exception
|
|
- name: CM_EXCEPTIONS_ARGUMENTS
|
|
value: 'java.lang.String:custom illegal argument exception'
|
|
|
|
# port of the spring boot application
|
|
- name: CM_PORT
|
|
value: ''
|
|
|
|
## percentage of total pods to target
|
|
- name: PODS_AFFECTED_PERC
|
|
value: ''
|
|
|