feat[chart]: Add chaos-charts for CPU-Hog experiment (#36)

* (refactor): Modification in cpu-hog experiment CR

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
This commit is contained in:
UDIT GAURAV
2019-11-11 20:02:48 +05:30
committed by Chandan Kumar
parent 85d7f1f0db
commit b33fa5a56e
2 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Give a cpu spike on a node belonging to a deployment
kind: ChaosExperiment
metadata:
name: cpu-hog
version: 0.0.1
spec:
definition:
permissions:
apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "daemonsets"
- "statefulsets"
- "deployments"
- "jobs"
- "nodes"
- "pods"
- "pods/exec"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "*"
image: "litmuschaos/ansible-runner:ci"
args:
- -c
- ansible-playbook ./experiments/generic/cpu_hog/cpu_hog_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: TOTAL_CHAOS_DURATION
value: '60'
- name: PLATFORM
value: 'ANY'
- name: LIB
value: ''
labels:
name: cpu-hog