add disk loss chaos experiment for aws and gcp to chart hub (#38)

* add disk loss chaos experiment for aws and gcp to chart hub

Signed-off-by: Raj <mail.rajdas@gmail.com>
This commit is contained in:
Raj Babu Das
2019-11-13 01:21:50 +05:30
committed by Chandan Kumar
parent 66695ad19a
commit a15f0274c8
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion
metadata:
name: disk-loss
version: 0.1.0
annotations:
categories: Kubernetes
vendor: CNCF
createdAt: 2019-11-08T12:28:08Z
repository: https://github.com/litmuschaos/chaos-charts
support: https://slack.kubernetes.io/
spec:
displayName: disk-loss
categoryDescription: |
Disk Loss contains chaos to disrupt state of infra resources. Experiments can inject disk loss against specified application.
- Causes (forced/graceful) disk loss from node/instance..
- Tests deployment sanity (replica availability & uninterrupted service) and recovery workflows of the application pod.
keywords:
- Kubernetes
- AWS
- GCP
- Disk
platorms:
- GKE
- AWS
maturity: alpha
maintainers:
- name: Raj Babu Das
email: raj.das@mayadata.io
minKubeVersion: 1.12.0
provider:
name: Mayadata
links:
- name: Kubernetes Website
url: https://kubernetes.io
- name: Source Code
url: https://github.com/kubernetes/kubernetes
icon:
- url:
mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/disk-loss/experiment.yaml

View File

@@ -0,0 +1,39 @@
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Detaching a persistent disk from a node/instance. Supports only for AWS and GCP
kind: ChaosExperiment
metadata:
name: disk-loss
version: 0.1.0
spec:
permissions:
apiGroups:
- ""
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "deployments"
- "statefulsets"
- "jobs"
- "pods"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "*"
definition:
image: "litmuschaos/ansible-runner:ci"
args:
- -c
- ansible-playbook ./experiments/generic/disk_loss/disk_loss_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: 15
labels:
name: disk-loss