mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
This commit: - Leverages distribution flag in the config set by the user to skip things not supported on OpenShift to be able to run scenarios on Kubernetes. - Adds sample config and scenario files that work on Kubernetes.
36 lines
958 B
YAML
36 lines
958 B
YAML
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: nginx-chaos
|
|
namespace: litmus
|
|
spec:
|
|
# It can be delete/retain
|
|
jobCleanUpPolicy: 'retain'
|
|
# It can be active/stop
|
|
engineState: 'active'
|
|
chaosServiceAccount: litmus-sa
|
|
experiments:
|
|
- name: node-io-stress
|
|
spec:
|
|
components:
|
|
env:
|
|
# set chaos duration (in sec) as desired
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '40'
|
|
|
|
## specify the size as percentage of free space on the file system
|
|
- name: FILESYSTEM_UTILIZATION_PERCENTAGE
|
|
value: '100'
|
|
|
|
## Number of core of CPU
|
|
- name: CPU
|
|
value: '1'
|
|
|
|
## Total number of workers default value is 4
|
|
- name: NUMBER_OF_WORKERS
|
|
value: '3'
|
|
|
|
## enter the comma separated target nodes name
|
|
- name: TARGET_NODES
|
|
value: '<node_name>'
|