(refactor): Changing name of cpu_hog experiment to node_cpu_hog (#129)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-01-28 19:25:45 +05:30
committed by Karthik Satchitanand
parent 4a8324ef6e
commit 87b0bcec45
5 changed files with 17 additions and 14 deletions

View File

@@ -12,13 +12,16 @@ spec:
Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. It will install all the experiments which can be used to inject chaos into containerized appications. Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. It will install all the experiments which can be used to inject chaos into containerized appications.
experiments: experiments:
- pod-network-loss
- pod-delete - pod-delete
- container-kill - container-kill
- pod-cpu-hog - pod-cpu-hog
- pod-network-loss
- pod-network-latency - pod-network-latency
- node-drain
- pod-network-corruption - pod-network-corruption
- node-drain
- node-cpu-hog
- disk-loss
- disk-fill
keywords: keywords:
- Kubernetes - Kubernetes

View File

@@ -15,9 +15,9 @@ experiments:
- name: pod-cpu-hog - name: pod-cpu-hog
CSV: pod-cpu-hog.chartserviceversion.yaml CSV: pod-cpu-hog.chartserviceversion.yaml
desc: "pod-cpu-hog" desc: "pod-cpu-hog"
- name: cpu-hog - name: node-cpu-hog
CSV: cpu-hog.chartserviceversion.yaml CSV: node-cpu-hog.chartserviceversion.yaml
desc: "cpu-hog" desc: "node-cpu-hog"
- name: disk-fill - name: disk-fill
CSV: disk-fill.chartserviceversion.yaml CSV: disk-fill.chartserviceversion.yaml
desc: "disk-fill" desc: "disk-fill"

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -4,7 +4,7 @@ description:
Give a cpu spike on a node belonging to a deployment Give a cpu spike on a node belonging to a deployment
kind: ChaosExperiment kind: ChaosExperiment
metadata: metadata:
name: cpu-hog name: node-cpu-hog
version: 0.1.8 version: 0.1.8
spec: spec:
definition: definition:
@@ -40,7 +40,7 @@ spec:
image: "litmuschaos/ansible-runner:latest" image: "litmuschaos/ansible-runner:latest"
args: args:
- -c - -c
- ansible-playbook ./experiments/generic/cpu_hog/cpu_hog_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 - ansible-playbook ./experiments/generic/node_cpu_hog/node_cpu_hog_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command: command:
- /bin/bash - /bin/bash
env: env:
@@ -62,4 +62,4 @@ spec:
value: '' value: ''
labels: labels:
name: cpu-hog name: node-cpu-hog

View File

@@ -1,7 +1,7 @@
apiVersion: litmuchaos.io/v1alpha1 apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion kind: ChartServiceVersion
metadata: metadata:
name: cpu-hog name: node-cpu-hog
version: 0.0.7 version: 0.0.7
annotations: annotations:
categories: Kubernetes categories: Kubernetes
@@ -9,9 +9,9 @@ metadata:
createdAt: 2019-08-12T10:28:08Z createdAt: 2019-08-12T10:28:08Z
support: https://slack.kubernetes.io/ support: https://slack.kubernetes.io/
spec: spec:
displayName: cpu-hog displayName: node-cpu-hog
categoryDescription: | categoryDescription: |
CPU hog contains chaos to disrupt state of kubernetes resources. Experiments can inject a cpu skipe on a node where the application pod is scheduled. Node CPU hog contains chaos to disrupt state of kubernetes resources. Experiments can inject a cpu skipe on a node where the application pod is scheduled.
- Causes (forced/graceful) cpu hog on a perticular node where the application deployment is available. - Causes (forced/graceful) cpu hog on a perticular node where the application deployment is available.
- After test the recovery should be manual of the application pod and node in case they are not in appropriate state. - After test the recovery should be manual of the application pod and node in case they are not in appropriate state.
@@ -31,12 +31,12 @@ spec:
name: Mayadata name: Mayadata
links: links:
- name: Source Code - name: Source Code
url: https://github.com/litmuschaos/litmus/tree/master/experiments/generic/cpu_hog url: https://github.com/litmuschaos/litmus/tree/master/experiments/generic/node_cpu_hog
- name: Documentation - name: Documentation
url: https://docs.litmuschaos.io/docs/cpu-hog/ url: https://docs.litmuschaos.io/docs/node-cpu-hog/
- name: Video - name: Video
url: url:
icon: icon:
- url: - url:
mediatype: "" mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/cpu-hog/experiment.yaml chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/node-cpu-hog/experiment.yaml