aboutsummaryrefslogtreecommitdiffstats
path: root/roles/onap-chaos-tests/templates/node-memory-hog-chaos.yaml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/onap-chaos-tests/templates/node-memory-hog-chaos.yaml.j2')
-rw-r--r--roles/onap-chaos-tests/templates/node-memory-hog-chaos.yaml.j232
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/onap-chaos-tests/templates/node-memory-hog-chaos.yaml.j2 b/roles/onap-chaos-tests/templates/node-memory-hog-chaos.yaml.j2
new file mode 100644
index 0000000..fb39b9b
--- /dev/null
+++ b/roles/onap-chaos-tests/templates/node-memory-hog-chaos.yaml.j2
@@ -0,0 +1,32 @@
+apiVersion: litmuschaos.io/v1alpha1
+kind: ChaosEngine
+metadata:
+ name: node-memory-hog
+ namespace: {{ onap_namespace }}
+spec:
+ # It can be true/false
+ annotationCheck: 'false'
+ # It can be active/stop
+ engineState: 'active'
+ #ex. values: ns1:name=percona,ns2:run=nginx
+ auxiliaryAppInfo: ''
+ chaosServiceAccount: node-memory-hog-sa
+ # It can be delete/retain
+ jobCleanUpPolicy: 'delete'
+ experiments:
+ - name: node-memory-hog
+ spec:
+ components:
+ env:
+ # set chaos duration (in sec) as desired
+ - name: TOTAL_CHAOS_DURATION
+ value: '120'
+
+ ## 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: {{ compute_chaos }}