(feat): add openebs pool container failure experiment CR (#39)
* (feat): add openebs pool conatiner failure experiment CR Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
committed by
Karthik Satchitanand
parent
5c058730b1
commit
711b85dbf7
@@ -43,6 +43,7 @@ spec:
|
||||
- name: LIB
|
||||
value: ''
|
||||
|
||||
# provide lib image
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.4.8'
|
||||
|
||||
|
@@ -40,11 +40,13 @@ spec:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '15'
|
||||
|
||||
- name: FORCE
|
||||
value: 'true'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '5'
|
||||
|
||||
- name: LIB
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: pod-delete
|
@@ -34,6 +34,8 @@ spec:
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: 'default'
|
||||
|
||||
- name: TARGET_CONTAINER
|
||||
value: ''
|
||||
@@ -41,6 +43,10 @@ spec:
|
||||
- name: NETWORK_INTERFACE
|
||||
value: 'eth0'
|
||||
|
||||
# provide lib image
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.4.8'
|
||||
|
||||
- name: NETWORK_LATENCY
|
||||
value: '60000' #in ms
|
||||
|
||||
@@ -49,9 +55,5 @@ spec:
|
||||
|
||||
- name: LIB
|
||||
value: 'pumba'
|
||||
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.4.8'
|
||||
|
||||
labels:
|
||||
name: pod-network-latency
|
||||
|
@@ -34,10 +34,16 @@ spec:
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: 'default'
|
||||
|
||||
- name: TARGET_CONTAINER
|
||||
value: ''
|
||||
|
||||
# provide lib image
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.4.8'
|
||||
|
||||
- name: NETWORK_INTERFACE
|
||||
value: 'eth0'
|
||||
|
||||
@@ -49,9 +55,5 @@ spec:
|
||||
|
||||
- name: LIB
|
||||
value: 'pumba'
|
||||
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.4.8'
|
||||
|
||||
labels:
|
||||
name: pod-network-loss
|
||||
|
@@ -0,0 +1,75 @@
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Kill the pool container and check if gets scheduled again
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-pool-container-failure
|
||||
version: 0.1.1
|
||||
spec:
|
||||
permissions:
|
||||
apiGroups:
|
||||
- ""
|
||||
- "extensions"
|
||||
- "apps"
|
||||
- "batch"
|
||||
- "litmuschaos.io"
|
||||
- "openebs.io"
|
||||
resources:
|
||||
- "daemonsets"
|
||||
- "statefulsets"
|
||||
- "deployments"
|
||||
- "replicasets"
|
||||
- "jobs"
|
||||
- "pods"
|
||||
- "pods/exec"
|
||||
- "chaosengines"
|
||||
- "chaosexperiments"
|
||||
- "chaosresults"
|
||||
- "persistentvolumeclaims"
|
||||
- "cstorvolumereplicas"
|
||||
verbs:
|
||||
- "*"
|
||||
definition:
|
||||
image: "litmuschaos/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/openebs/openebs-pool-container-failure/openebs_pool_container_failure_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: 'default'
|
||||
|
||||
- name: OPENEBS_NS
|
||||
value: 'openebs'
|
||||
|
||||
- name: APP_PVC
|
||||
value: ''
|
||||
|
||||
- name: LIVENESS_APP_LABEL
|
||||
value: ''
|
||||
|
||||
# only pumba supported
|
||||
# For pumba image use : gaiaadm/pumba:0.4.8
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.4.8'
|
||||
|
||||
- name: LIVENESS_APP_NAMESPACE
|
||||
value: ''
|
||||
|
||||
- name: DATA_PERSISTENCE
|
||||
value: ''
|
||||
|
||||
- name: CHAOS_ITERATIONS
|
||||
value: '2'
|
||||
|
||||
labels:
|
||||
name: openebs-pool-container-failure
|
||||
configmaps:
|
||||
- name: openebs-pool-container-failure
|
||||
data:
|
||||
parameters.yml: |
|
@@ -0,0 +1,38 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-pool-container-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-pool-container-failure
|
||||
categoryDescription: >
|
||||
Kill the pool container and check if gets scheduled again.
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Storage Pool
|
||||
- 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-pool-container-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-pool-container-failure/experiment.yaml
|
Reference in New Issue
Block a user