(feat) add openebs-target-container-failure experiment CR (#45)

* (feat): add openebs target container failure chart

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

* (feat): add openebs target container failure

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2019-11-11 20:41:37 +05:30
committed by Karthik Satchitanand
parent 9a485dc6c1
commit 540b208651
3 changed files with 100 additions and 43 deletions

View File

@@ -0,0 +1,92 @@
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill the cstor target/Jiva controller container and check if gets created again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-target-container-failure
version: 0.1.1
spec:
definition:
permissions:
apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
- "openebs.io"
- "storage.k8s.io"
resources:
- "daemonsets"
- "statefulsets"
- "deployments"
- "replicasets"
- "jobs"
- "pods"
- "pods/exec"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumes"
verbs:
- "*"
image: "litmuschaos/ansible-runner:ci"
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-target-container-failure/openebs_target_container_failure_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
- name: APP_PVC
value: ''
# LIB_IMAGE can be - gaiaadm/pumba:0.4.8, gprasath/crictl:ci
# For pumba image use : gaiaadm/pumba:0.4.8
# For containerd image use : gprasath/crictl:ci
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.4.8'
# Specify the container runtime used , to pick the relevant chaos util
- name: CONTAINER_RUNTIME
value: 'docker'
# TARGET_CONTAINER values: cstor-volume-mgmt , cstor-istgt
# For cstor-volume-istgt container kill use : cstor-istgt
# For volume-mgmt-kill container use : cstor-volume-mgmt
- name: TARGET_CONTAINER
value: 'cstor-volume-mgmt'
- name: FORCE
value: 'true'
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
- name: DEPLOY_TYPE
value: 'deployment'
labels:
name: openebs-target-container-failure
configmaps:
- name: openebs-target-container-failure
data:
parameters.yml: |

View File

@@ -1,21 +1,24 @@
apiVersion: litmuchaos.io/v1alpha1 apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion kind: ChartServiceVersion
metadata: metadata:
name: openebs-target-failure name: openebs-target-container-failure
version: 0.1.2 version: 0.1.1
annotations: annotations:
categories: OpenEBS categories: OpenEBS
vendor: CNCF vendor: CNCF
repository: https://github.com/litmuschaos/chaos-charts repository: https://github.com/litmuschaos/chaos-charts
support: https://slack.openebs.io/ support: https://slack.openebs.io/
spec: spec:
displayName: openebs-target-failure displayName: openebs-target-container-failure
categoryDescription: > categoryDescription: >
Kill the cstor target/Jiva controller container and check if gets created again Kill the cstor target/Jiva controller container and check if gets created again
keywords: keywords:
- Kubernetes - Kubernetes
- Storage Controller - Storage Controller
- OpenEBS - OpenEBS
platforms:
- GKE
- OpenShift
maturity: alpha maturity: alpha
maintainers: maintainers:
- name: shubham chaudhary - name: shubham chaudhary
@@ -23,7 +26,7 @@ spec:
minKubeVersion: 1.12.0 minKubeVersion: 1.12.0
provider: provider:
name: Mayadata name: Mayadata
readme: "https://github.com/mayadata-io/litmus/blob/master/experiments/chaos/openebs_target_failure/README.md" readme: "https://github.com/litmuschaos/litmus/blob/master/experiments/openebs/openebs-target-container-failure/README.md"
links: links:
- name: OpenEBS Website - name: OpenEBS Website
url: https://openebs.io url: https://openebs.io
@@ -32,4 +35,4 @@ spec:
icon: icon:
- url: "" - url: ""
mediatype: "" mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-failure/experiment.yaml chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-container-failure/experiment.yaml

View File

@@ -1,38 +0,0 @@
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill the cstor target/Jiva controller container and check if gets created again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-target-failure
version: 0.1.1
spec:
definition:
image: "openebs/ansible-runner:ci"
args:
- -c
- ansible-playbook ./experiments/chaos/openebs_target_failure/test.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: default
- name: TARGET_NAMESPACE
value: "openebs"
- name: DATA_PERSISTENCE
value: ""
- name: CHAOS_TYPE
value: "target-zrepl-kill"
- name: TARGET_CONTAINER
value: "cstor-volume-mgmt"
- name: DEPLOY_TYPE
value: "deployment"
labels:
name: openebs-target-failure
configmaps:
- name: target-failure
data:
parameters.yml: |