(feat)charts: Add chaos experiments for OpenEBS network loss and delay (#19)
Refactor charts Signed-off-by: rajdas98 raj.das@mayadata.io
This commit is contained in:
committed by
Karthik Satchitanand
parent
f4963b71ad
commit
78d2c68b67
136
charts/openebs/experiments.yaml
Normal file
136
charts/openebs/experiments.yaml
Normal file
@@ -0,0 +1,136 @@
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Kill the pool pod and check if gets scheduled again
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-pool-failure
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
- name: DATA_PERSISTENCE
|
||||
value: ""
|
||||
- name: CHAOS_TYPE
|
||||
value: "pool-kill"
|
||||
- name: CHAOS_ITERATIONS
|
||||
value: "2"
|
||||
labels:
|
||||
name: openebs-pool-failure
|
||||
configmaps:
|
||||
- name: pool-failure
|
||||
data:
|
||||
parameters.yml: |
|
||||
---
|
||||
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.0
|
||||
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: |
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Network delay to target pod belonging to a deployment/statefulset/daemonset
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-target-network-delay
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_delay/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: "default"
|
||||
- name: OPERATOR_NAMESPACE
|
||||
value: "openebs"
|
||||
- name: NETWORK_DELAY
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: CHAOS_DURATION
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: DATA_PERSISTENCY
|
||||
value: ""
|
||||
labels:
|
||||
name: openebs-target-network-delay
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Network loss to target pod belonging to a OpenEBS PVC
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-target-network-loss
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_loss/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: "default"
|
||||
- name: OPERATOR_NAMESPACE
|
||||
value: "openebs"
|
||||
- name: NETWORK_DELAY
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: CHAOS_DURATION
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: DATA_PERSISTENCY
|
||||
value: ""
|
||||
labels:
|
||||
name: openebs-target-network-loss
|
@@ -11,25 +11,15 @@ metadata:
|
||||
version: {{ VERSION }}
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts
|
||||
-vv; exit 0
|
||||
- ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
- name: APP_NAMESPACE
|
||||
value: ""
|
||||
- name: APP_LABEL
|
||||
value: ""
|
||||
- name: APP_PVC
|
||||
value: #mendatory field
|
||||
- name: LIVENESS_APP_LABEL
|
||||
value: ""
|
||||
- name: LIVENESS_APP_NAMESPACE
|
||||
value: ""
|
||||
- name: DATA_PERSISTENCE
|
||||
value: ""
|
||||
- name: CHAOS_TYPE
|
||||
@@ -41,7 +31,4 @@ spec:
|
||||
configmaps:
|
||||
- name: pool-failure
|
||||
data:
|
||||
parameters.yml: |
|
||||
litmusbook: /experiments/chaos/openebs_pool_failure/run_litmus_test.yml
|
||||
|
||||
|
||||
parameters.yml: |
|
34
charts/openebs/openebs-pool-failure/experiment.yaml
Normal file
34
charts/openebs/openebs-pool-failure/experiment.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Kill the pool pod and check if gets scheduled again
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-pool-failure
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/openebs_pool_failure/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
- name: DATA_PERSISTENCE
|
||||
value: ""
|
||||
- name: CHAOS_TYPE
|
||||
value: "pool-kill"
|
||||
- name: CHAOS_ITERATIONS
|
||||
value: "2"
|
||||
labels:
|
||||
name: openebs-pool-failure
|
||||
configmaps:
|
||||
- name: pool-failure
|
||||
data:
|
||||
parameters.yml: |
|
@@ -2,20 +2,20 @@ apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-pool-failure
|
||||
version: {{ VERSION }}
|
||||
annotations:
|
||||
categories: "OpenEBS"
|
||||
vendor: "CNCF"
|
||||
categories: OpenEBS
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: Openebs-Pool-Failure
|
||||
displayName: openebs-pool-failure
|
||||
description: >
|
||||
Kill the pool pod and check if gets scheduled again.
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Storage Pool
|
||||
- OpenEBS
|
||||
version: {{ VERSION }}
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: shubham chaudhary
|
@@ -1,30 +1,29 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: pod-delete-v0.1.0
|
||||
name: openebs-pool-failure
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: "OpenEBS"
|
||||
vendor: "CNCF"
|
||||
createdAt: 2019-08-12T10:28:08Z
|
||||
repository: https://github.com/litmuschaos/community-charts
|
||||
categories: OpenEBS
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: Pod-Delete
|
||||
displayName: openebs-pool-failure
|
||||
description: >
|
||||
Pod delete contains chaos to disrupt state of openebs control-plane and data-plane resources. Experiments can inject random pod delete against specified openebs replicas.
|
||||
|
||||
Kill the pool pod and check if gets scheduled again.
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Pod
|
||||
- Storage Pool
|
||||
- OpenEBS
|
||||
version: 0.1.0
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: ksatchit
|
||||
email: karthik.s@mayadata.io
|
||||
- name: shubham chaudhary
|
||||
email: shubham.chaudhary@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
readme: "https://github.com/mayadata-io/litmus/blob/master/experiments/chaos/openebs_pool_failure/README.md"
|
||||
links:
|
||||
- name: OpenEBS Website
|
||||
url: https://openebs.io
|
@@ -1,4 +1,4 @@
|
||||
--
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
@@ -11,27 +11,17 @@ metadata:
|
||||
version: {{ VERSION }}
|
||||
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
|
||||
- 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: APP_NAMESPACE
|
||||
value: ""
|
||||
- name: APP_LABEL
|
||||
value: ""
|
||||
- name: APP_PVC
|
||||
value: #mendatory field
|
||||
- name: LIVENESS_APP_LABEL
|
||||
value: ""
|
||||
- name: LIVENESS_APP_NAMESPACE
|
||||
value: ""
|
||||
value: "openebs"
|
||||
- name: DATA_PERSISTENCE
|
||||
value: ""
|
||||
- name: CHAOS_TYPE
|
||||
@@ -39,15 +29,10 @@ spec:
|
||||
- name: TARGET_CONTAINER
|
||||
value: "cstor-volume-mgmt"
|
||||
- name: DEPLOY_TYPE
|
||||
value: deployment
|
||||
value: "deployment"
|
||||
labels:
|
||||
name: openebs-target-failure
|
||||
configmaps:
|
||||
- name: target-failure
|
||||
data:
|
||||
parameters.yml: |
|
||||
litmusbook: /experiments/chaos/openebs_target_failure/run_litmus_test.yml
|
||||
|
||||
|
||||
|
||||
|
||||
parameters.yml: |
|
38
charts/openebs/openebs-target-failure/experiment.yaml
Normal file
38
charts/openebs/openebs-target-failure/experiment.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
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.0
|
||||
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: |
|
@@ -2,20 +2,20 @@ apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-target-failure
|
||||
version: {{ VERSION }}
|
||||
annotations:
|
||||
categories: "OpenEBS"
|
||||
vendor: "CNCF"
|
||||
categories: OpenEBS
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: Openebs-Target-Failure
|
||||
displayName: openebs-target-failure
|
||||
description: >
|
||||
Kill the cstor target/Jiva controller container and check if gets created again
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Storage Controller
|
||||
- OpenEBS
|
||||
version: {{ VERSION }}
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: shubham chaudhary
|
||||
|
@@ -0,0 +1,34 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-target-failure
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: OpenEBS
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: openebs-target-failure
|
||||
description: >
|
||||
Kill the cstor target/Jiva controller container and check if gets created again
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Storage Controller
|
||||
- OpenEBS
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: shubham chaudhary
|
||||
email: shubham.chaudhary@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
readme: "https://github.com/mayadata-io/litmus/blob/master/experiments/chaos/openebs_target_failure/README.md"
|
||||
links:
|
||||
- name: OpenEBS Website
|
||||
url: https://openebs.io
|
||||
- name: Source Code
|
||||
url: https://github.com/openebs/openebs
|
||||
icon:
|
||||
- url: ""
|
||||
mediatype: ""
|
@@ -0,0 +1,31 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Network delay to target pod belonging to a deployment/statefulset/daemonset
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-target-network-delay
|
||||
version: {{ VERSION }}
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_delay/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: "default"
|
||||
- name: OPERATOR_NAMESPACE
|
||||
value: "openebs"
|
||||
- name: NETWORK_DELAY
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: CHAOS_DURATION
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: DATA_PERSISTENCY
|
||||
value: ""
|
||||
labels:
|
||||
name: openebs-target-network-delay
|
31
charts/openebs/openebs-target-network-delay/experiment.yaml
Normal file
31
charts/openebs/openebs-target-network-delay/experiment.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Network delay to target pod belonging to a deployment/statefulset/daemonset
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-target-network-delay
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_delay/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: "default"
|
||||
- name: OPERATOR_NAMESPACE
|
||||
value: "openebs"
|
||||
- name: NETWORK_DELAY
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: CHAOS_DURATION
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: DATA_PERSISTENCY
|
||||
value: ""
|
||||
labels:
|
||||
name: openebs-target-network-delay
|
@@ -1,27 +1,25 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: pod-delete
|
||||
annotations:
|
||||
categories: "OpenEBS"
|
||||
vendor: "CNCF"
|
||||
createdAt: 2019-08-12T10:28:08Z
|
||||
repository: https://github.com/litmuschaos/community-charts
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: Pod-Delete
|
||||
description: >
|
||||
Pod delete contains chaos to disrupt state of openebs control-plane and data-plane resources. Experiments can inject random pod delete against specified openebs replicas.
|
||||
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Pod
|
||||
- OpenEBS
|
||||
name: openebs-target-network-delay
|
||||
version: {{ VERSION }}
|
||||
annotations:
|
||||
categories: Kubernetes
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/community-charts
|
||||
support: https://slack.kubernetes.io/
|
||||
spec:
|
||||
displayName: openebs_target_network_delay
|
||||
description: >
|
||||
Network delay to Pod belonging to a OpenEBS PVC
|
||||
keywords:
|
||||
- OpenEBS
|
||||
- Kubernetes
|
||||
- Network Delay
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: ksatchit
|
||||
email: karthik.s@mayadata.io
|
||||
- name: giri
|
||||
email: giridhara.prasad@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
@@ -31,5 +29,6 @@ spec:
|
||||
- name: Source Code
|
||||
url: https://github.com/openebs/openebs
|
||||
icon:
|
||||
- url: ""
|
||||
- url:
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-delay/experiment.yaml
|
@@ -0,0 +1,34 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-target-network-delay
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: Kubernetes
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/community-charts
|
||||
support: https://slack.kubernetes.io/
|
||||
spec:
|
||||
displayName: openebs_target_network_delay
|
||||
description: >
|
||||
Network delay to Pod belonging to a OpenEBS PVC
|
||||
keywords:
|
||||
- OpenEBS
|
||||
- Kubernetes
|
||||
- Network Delay
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: giri
|
||||
email: giridhara.prasad@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
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-network-delay/experiment.yaml
|
@@ -0,0 +1,31 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Network loss to target pod belonging to a OpenEBS PVC
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-target-network-loss
|
||||
version: {{ VERSION }}
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_loss/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: "default"
|
||||
- name: OPERATOR_NAMESPACE
|
||||
value: "openebs"
|
||||
- name: NETWORK_DELAY
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: CHAOS_DURATION
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: DATA_PERSISTENCY
|
||||
value: ""
|
||||
labels:
|
||||
name: openebs-target-network-loss
|
31
charts/openebs/openebs-target-network-loss/experiment.yaml
Normal file
31
charts/openebs/openebs-target-network-loss/experiment.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Network loss to target pod belonging to a OpenEBS PVC
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-target-network-loss
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "openebs/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/experiments/chaos/openebs_target_network_loss/test.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: "default"
|
||||
- name: OPERATOR_NAMESPACE
|
||||
value: "openebs"
|
||||
- name: NETWORK_DELAY
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: CHAOS_DURATION
|
||||
value: "60" # in milliseconds (Mandatory)
|
||||
- name: DATA_PERSISTENCY
|
||||
value: ""
|
||||
labels:
|
||||
name: openebs-target-network-loss
|
@@ -0,0 +1,34 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-target-network-loss
|
||||
version: {{ VERSION }}
|
||||
annotations:
|
||||
categories: Kubernetes
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.kubernetes.io/
|
||||
spec:
|
||||
displayName: openebs-target-network-loss
|
||||
description: >
|
||||
Network loss to the target pod belonging to an OpenEBS PVC
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- OpenEBS
|
||||
- Network Loss
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: giri
|
||||
email: giridhara.prasad@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
links:
|
||||
- name: Kubernetes Website
|
||||
url: https://openebs.io
|
||||
- name: Source Code
|
||||
url: https://github.com/openebes/openebs
|
||||
icon:
|
||||
- url: ""
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: "https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-loss/experiment.yaml"
|
@@ -0,0 +1,34 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-target-network-loss
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: Kubernetes
|
||||
vendor: CNCF
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.kubernetes.io/
|
||||
spec:
|
||||
displayName: openebs-target-network-loss
|
||||
description: >
|
||||
Network loss to the target pod belonging to an OpenEBS PVC
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- OpenEBS
|
||||
- Network Loss
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: giri
|
||||
email: giridhara.prasad@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
links:
|
||||
- name: Kubernetes Website
|
||||
url: https://openebs.io
|
||||
- name: Source Code
|
||||
url: https://github.com/openebes/openebs
|
||||
icon:
|
||||
- url: ""
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: "https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-target-network-loss/experiment.yaml"
|
@@ -2,11 +2,11 @@ apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs
|
||||
version: {{ VERSION }}
|
||||
annotations:
|
||||
categories: "OpenEBS"
|
||||
vendor: "MayaData"
|
||||
createdAt: 2019-08-12T10:28:08Z
|
||||
repository: https://github.com/litmuschaos/community-charts
|
||||
categories: OpenEBS
|
||||
vendor: MayaData
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.openebs.io/
|
||||
description: Injects generic openebs chaos
|
||||
spec:
|
||||
@@ -15,13 +15,14 @@ spec:
|
||||
OpenEBS is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace.
|
||||
|
||||
experiments:
|
||||
- Pod-delete
|
||||
|
||||
- openebs-pool-failure
|
||||
- openebs-target-failure
|
||||
- openebs-target-network-delay
|
||||
- openebs-target-network-loss
|
||||
keywords:
|
||||
- OpenEBS
|
||||
- CAS
|
||||
- Storage
|
||||
version: {{ VERSION }}
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: ksatchit
|
||||
@@ -37,4 +38,4 @@ spec:
|
||||
icon:
|
||||
- url:
|
||||
mediatype: image/png
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/community-charts/master/charts/openebs/experiments/openebs_all_exp_crd.yaml
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/experiments.yaml
|
||||
|
@@ -1,12 +1,12 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-v0.1.0
|
||||
name: openebs
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: "OpenEBS"
|
||||
vendor: "MayaData"
|
||||
createdAt: 2019-08-12T10:28:08Z
|
||||
repository: https://github.com/litmuschaos/community-charts
|
||||
categories: OpenEBS
|
||||
vendor: MayaData
|
||||
repository: https://github.com/litmuschaos/chaos-charts
|
||||
support: https://slack.openebs.io/
|
||||
description: Injects generic openebs chaos
|
||||
spec:
|
||||
@@ -15,13 +15,14 @@ spec:
|
||||
OpenEBS is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace.
|
||||
|
||||
experiments:
|
||||
- Pod-delete
|
||||
|
||||
- openebs-pool-failure
|
||||
- openebs-target-failure
|
||||
- openebs-target-network-delay
|
||||
- openebs-target-network-loss
|
||||
keywords:
|
||||
- OpenEBS
|
||||
- CAS
|
||||
- Storage
|
||||
version: 0.1.0
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: ksatchit
|
||||
@@ -37,4 +38,4 @@ spec:
|
||||
icon:
|
||||
- url:
|
||||
mediatype: image/png
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/community-charts/master/charts/openebs/experiments/openebs_all_exp_crd.yaml
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/experiments.yaml
|
||||
|
@@ -1,5 +1,14 @@
|
||||
packageName: openebs
|
||||
subcharts:
|
||||
- name: Pod-delete
|
||||
CSV: pod_delete.chartserviceversion.yaml
|
||||
desc: "Pod-delete"
|
||||
- name: openebs-pool-failure
|
||||
CSV: openebs_pool_failure.chartserviceversion.yaml
|
||||
desc: "openebs-pool-failure"
|
||||
- name: openebs-target-failure
|
||||
CSV: openebs_target_failure.chartserviceversion.yaml
|
||||
desc: "openebs-target-failure"
|
||||
- name: openebs-target-network-delay
|
||||
CSV: openebs_target_network_delay.chartserviceversion.yaml
|
||||
desc: "openebs-target-network-delay"
|
||||
- name: openebs-target-network-loss
|
||||
CSV: openebs_target-network-loss.chartserviceversion.yaml
|
||||
desc: "openebs-target-network-loss"
|
||||
|
@@ -1,29 +0,0 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Deletes a pod belonging to a deployment/statefulset/daemonset
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: kubernetes-state-pod-delete
|
||||
version: {{ VERSION }}
|
||||
spec:
|
||||
definition:
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.yml -i /etc/ansible/hosts
|
||||
-vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: 15
|
||||
- name: CHAOS_INTERVAL
|
||||
value: 5
|
||||
- name: LIB
|
||||
value: ""
|
||||
image: ""
|
||||
labels:
|
||||
name: pod-delete
|
||||
litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml
|
@@ -1,29 +0,0 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Deletes a pod belonging to a deployment/statefulset/daemonset
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: kubernetes-state-pod-delete-v0.1.0
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.yml -i /etc/ansible/hosts
|
||||
-vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: default
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: 15
|
||||
- name: CHAOS_INTERVAL
|
||||
value: 5
|
||||
- name: LIB
|
||||
value: ""
|
||||
image: ""
|
||||
labels:
|
||||
name: pod-delete
|
||||
litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml
|
Reference in New Issue
Block a user