mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
- This eases the usage and debuggability by running the fault injection pods in the same namespace as other resources of litmus. This will also ease the deletion process and ensure that there are no leftover objects on the cluster. - This commit also enables users to use the same rbac template for all the litmus scenarios without having to pull in a specic one for each of the scenarios.
29 lines
846 B
YAML
29 lines
846 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-memory-hog
|
|
spec:
|
|
components:
|
|
env:
|
|
# set chaos duration (in sec) as desired
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '30'
|
|
|
|
## Specify the size as percent of total node capacity Ex: '30'
|
|
## Note: For consuming memory in mebibytes change the variable to MEMORY_CONSUMPTION_MEBIBYTES
|
|
- name: MEMORY_CONSUMPTION_PERCENTAGE
|
|
value: '30'
|
|
|
|
# ENTER THE COMMA SEPARATED TARGET NODES NAME
|
|
- name: TARGET_NODES
|
|
value: '<node_name>'
|