From bc071e2387f91f333a14cacab0387bea80367810 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Mon, 11 Nov 2019 20:08:44 +0530 Subject: [PATCH] (feat): add openebs target pod failure (#44) Signed-off-by: shubhamchaudhary --- .../experiment.yaml | 75 +++++++++++++++++++ ...arget-pod-failure.chartserviceversion.yaml | 39 ++++++++++ 2 files changed, 114 insertions(+) create mode 100644 charts/openebs/openebs-target-pod-failure/experiment.yaml create mode 100644 charts/openebs/openebs-target-pod-failure/openebs-target-pod-failure.chartserviceversion.yaml diff --git a/charts/openebs/openebs-target-pod-failure/experiment.yaml b/charts/openebs/openebs-target-pod-failure/experiment.yaml new file mode 100644 index 0000000..9eca41b --- /dev/null +++ b/charts/openebs/openebs-target-pod-failure/experiment.yaml @@ -0,0 +1,75 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Kill the cstor target/Jiva controller pod and check if gets created again +kind: ChaosExperiment +metadata: + labels: + litmuschaos.io/name: openebs + name: openebs-target-pod-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-pod-failure/openebs_target_pod_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: '' + + - 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-pod-failure + configmaps: + - name: openebs-target-pod-failure + data: + parameters.yml: | diff --git a/charts/openebs/openebs-target-pod-failure/openebs-target-pod-failure.chartserviceversion.yaml b/charts/openebs/openebs-target-pod-failure/openebs-target-pod-failure.chartserviceversion.yaml new file mode 100644 index 0000000..e4b19a6 --- /dev/null +++ b/charts/openebs/openebs-target-pod-failure/openebs-target-pod-failure.chartserviceversion.yaml @@ -0,0 +1,39 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: openebs-target-pod-failure + version: 0.1.1 + annotations: + categories: OpenEBS + vendor: CNCF + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.openebs.io/ +spec: + displayName: openebs-target-pod-failure + categoryDescription: > + Kill the cstor target/Jiva controller pod and check if gets created again + keywords: + - Kubernetes + - Storage Controller + - OpenEBS + platforms: + - GKE + - OpenShift + maturity: alpha + maintainers: + - name: shubham chaudhary + email: shubham.chaudhary@mayadata.io + minKubeVersion: 1.12.0 + provider: + name: Mayadata + readme: "https://github.com/litmuschaos/litmus/blob/master/experiments/openebs/openebs-target-pod-failure/README.md" + links: + - name: OpenEBS Website + url: https://openebs.io + - name: Source Code + url: https://github.com/openebs/openebs + icon: + - url: "" + mediatype: "" + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-pod-failure/experiment.yaml +