(feat): Adding Openebs pool network delay chart (#135)
* (feat): Adding openebs target network delay chaos chart Signed-off-by: Raj <raj.das@mayadata.io>
This commit is contained in:
BIN
charts/openebs/icons/openebs-pool-network-delay.png
Normal file
BIN
charts/openebs/icons/openebs-pool-network-delay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
34
charts/openebs/openebs-pool-network-delay/engine.yaml
Normal file
34
charts/openebs/openebs-pool-network-delay/engine.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: litmuschaos.io/v1alpha1
|
||||||
|
kind: ChaosEngine
|
||||||
|
metadata:
|
||||||
|
name: pool-chaos
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
annotationCheck: 'false'
|
||||||
|
appinfo:
|
||||||
|
appns: 'default'
|
||||||
|
applabel: 'app=nginx'
|
||||||
|
appkind: 'deployment'
|
||||||
|
chaosServiceAccount: nginx-sa
|
||||||
|
monitoring: false
|
||||||
|
# It can be delete/retain
|
||||||
|
jobCleanUpPolicy: 'delete'
|
||||||
|
experiments:
|
||||||
|
- name: openebs-pool-network-delay
|
||||||
|
spec:
|
||||||
|
components:
|
||||||
|
env:
|
||||||
|
- name: APP_PVC
|
||||||
|
value: 'demo-nginx-claim'
|
||||||
|
|
||||||
|
- name: OPENEBS_NAMESPACE
|
||||||
|
value: 'openebs'
|
||||||
|
|
||||||
|
# in milliseconds
|
||||||
|
- name: NETWORK_DELAY
|
||||||
|
value: '60000'
|
||||||
|
|
||||||
|
# in milliseconds
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60000'
|
||||||
|
|
82
charts/openebs/openebs-pool-network-delay/experiment.yaml
Normal file
82
charts/openebs/openebs-pool-network-delay/experiment.yaml
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
apiVersion: litmuschaos.io/v1alpha1
|
||||||
|
description:
|
||||||
|
message: |
|
||||||
|
Network delay to pool pod belonging to a OpenEBS PVC
|
||||||
|
This experiment is using pumba lib for network chaos
|
||||||
|
kind: ChaosExperiment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
litmuschaos.io/name: openebs
|
||||||
|
name: openebs-pool-network-delay
|
||||||
|
version: 0.1.0
|
||||||
|
spec:
|
||||||
|
definition:
|
||||||
|
scope: Cluster
|
||||||
|
permissions:
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
- "apps"
|
||||||
|
- "litmuschaos.io"
|
||||||
|
- "batch"
|
||||||
|
- "extensions"
|
||||||
|
- "storage.k8s.io"
|
||||||
|
- "openebs.io"
|
||||||
|
resources:
|
||||||
|
- "pods"
|
||||||
|
- "pods/exec"
|
||||||
|
- "jobs"
|
||||||
|
- "configmaps"
|
||||||
|
- "services"
|
||||||
|
- "persistentvolumeclaims"
|
||||||
|
- "storageclasses"
|
||||||
|
- "persistentvolumes"
|
||||||
|
- "chaosengines"
|
||||||
|
- "chaosexperiments"
|
||||||
|
- "chaosresults"
|
||||||
|
- "cstorpools"
|
||||||
|
- "cstorvolumereplicas"
|
||||||
|
- "replicasets"
|
||||||
|
verbs:
|
||||||
|
- "create"
|
||||||
|
- "get"
|
||||||
|
- "list"
|
||||||
|
- "patch"
|
||||||
|
- "update"
|
||||||
|
- "delete"
|
||||||
|
image: "litmuschaos/ansible-runner:latest"
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- ansible-playbook ./experiments/openebs/openebs-pool-network-delay/openebs_pool_network_delay_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'
|
||||||
|
|
||||||
|
# only pumba supported
|
||||||
|
# For pumba image use : gaiaadm/pumba:0.6.5
|
||||||
|
- name: LIB_IMAGE
|
||||||
|
value: 'gaiaadm/pumba:0.6.5'
|
||||||
|
|
||||||
|
# in milliseconds
|
||||||
|
- name: NETWORK_DELAY
|
||||||
|
value: '60000'
|
||||||
|
|
||||||
|
# in milliseconds
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '60000'
|
||||||
|
|
||||||
|
- name: LIVENESS_APP_LABEL
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
- name: LIVENESS_APP_NAMESPACE
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
- name: DATA_PERSISTENCE
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
labels:
|
||||||
|
name: openebs-pool-network-delay
|
@@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: litmuchaos.io/v1alpha1
|
||||||
|
kind: ChartServiceVersion
|
||||||
|
metadata:
|
||||||
|
name: openebs-pool-network-delay
|
||||||
|
version: 0.1.0
|
||||||
|
annotations:
|
||||||
|
categories: OpenEBS
|
||||||
|
vendor: CNCF
|
||||||
|
support: https://slack.openebs.io/
|
||||||
|
spec:
|
||||||
|
displayName: openebs-pool-network-delay
|
||||||
|
categoryDescription: >
|
||||||
|
Network delay to pool pod belonging to a OpenEBS PVC
|
||||||
|
keywords:
|
||||||
|
- Kubernetes
|
||||||
|
- Storage Pool
|
||||||
|
- OpenEBS
|
||||||
|
platforms:
|
||||||
|
- GKE
|
||||||
|
maturity: alpha
|
||||||
|
maintainers:
|
||||||
|
- name: Raj Babu Das
|
||||||
|
email: raj.das@mayadata.io
|
||||||
|
minKubeVersion: 1.12.0
|
||||||
|
provider:
|
||||||
|
name: Mayadata
|
||||||
|
links:
|
||||||
|
- name: Source Code
|
||||||
|
url: https://github.com/litmuschaos/litmus/tree/master/experiments/openebs/openebs-pool-network-delay
|
||||||
|
- name: Documentation
|
||||||
|
url: https://docs.litmuschaos.io/docs/openebs-pool-network-delay/
|
||||||
|
- name: Video
|
||||||
|
url:
|
||||||
|
icon:
|
||||||
|
- url: ""
|
||||||
|
mediatype: ""
|
||||||
|
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-pool-network-delay/experiment.yaml
|
34
charts/openebs/openebs-pool-network-delay/rbac.yml
Normal file
34
charts/openebs/openebs-pool-network-delay/rbac.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: nginx-sa
|
||||||
|
namespace: openebs
|
||||||
|
labels:
|
||||||
|
name: nginx-sa
|
||||||
|
---
|
||||||
|
# Source: openebs/templates/clusterrole.yaml
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: nginx-sa
|
||||||
|
labels:
|
||||||
|
name: nginx-sa
|
||||||
|
rules:
|
||||||
|
- apiGroups: ["","apps","litmuschaos.io","batch","extensions","storage.k8s.io","openebs.io"]
|
||||||
|
resources: ["pods","pods/exec","jobs","configmaps","services","persistentvolumeclaims","storageclasses","persistentvolumes","chaosengines","chaosexperiments","chaosresults","cstorpools","cstorvolumereplicas","replicasets"]
|
||||||
|
verbs: ["create","list","get","patch","update","delete"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: nginx-sa
|
||||||
|
labels:
|
||||||
|
name: nginx-sa
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: nginx-sa
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: nginx-sa
|
||||||
|
namespace: openebs
|
Reference in New Issue
Block a user