Files
litmus-hub/charts/generic/cpu-hog/experiment.yaml
Amit Bhatt e7dbeadecc Added update verb in charts (#113)
* Added update verb in charts

* updated coredns rbac

Signed-off-by: Amit Bhatt <amitbhatt818@gmail.com>
2020-01-15 16:38:21 +05:30

62 lines
1.2 KiB
YAML

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.1.6
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "batch"
- "apps"
- "litmuschaos.io"
resources:
- "daemonsets"
- "jobs"
- "pods"
- "pods/exec"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
- apiGroups:
- ""
resources:
- "nodes"
verbs :
- "get"
- "list"
image: "litmuschaos/ansible-runner:latest"
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: 'GKE'
- name: LIB
value: ''
labels:
name: cpu-hog