Directory restructure to add scenarios and experiments (#559)
* Updated dir struture with scenarios and experiments dir Signed-off-by: Amit Kumar Das <amit.das@harness.io> * Added icons Signed-off-by: Amit Kumar Das <amit.das@harness.io>
This commit is contained in:
40
experiments/openebs/openebs-nfs-provisioner-kill/engine.yaml
Normal file
40
experiments/openebs/openebs-nfs-provisioner-kill/engine.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
kind: ChaosEngine
|
||||
metadata:
|
||||
name: nfs-chaos
|
||||
namespace: default
|
||||
spec:
|
||||
# It can be active/stop
|
||||
engineState: 'active'
|
||||
appinfo:
|
||||
appns: 'minio'
|
||||
applabel: 'app=minio'
|
||||
appkind: 'deployment'
|
||||
chaosServiceAccount: nfs-chaos-sa
|
||||
experiments:
|
||||
- name: openebs-nfs-provisioner-kill
|
||||
spec:
|
||||
components:
|
||||
env:
|
||||
# provide the total chaos duration
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '20'
|
||||
|
||||
- name: NFS_PROVISIONER_NAMESPACE
|
||||
value: 'app-nfs-ns'
|
||||
|
||||
- name: NFS_PROVISIONER_LABEL
|
||||
value: 'app=nfs'
|
||||
|
||||
- name: NFS_PVC
|
||||
value: 'nfs-pvc-claim'
|
||||
|
||||
- name: NFS_SVC
|
||||
value: 'nfs-provisioner'
|
||||
|
||||
- name: TARGET_CONTAINER
|
||||
value: 'nfs-provisioner'
|
||||
|
||||
# EXTERNAL_APP_CHECK can be true/false
|
||||
- name: EXTERNAL_APP_CHECK
|
||||
value: 'true'
|
100
experiments/openebs/openebs-nfs-provisioner-kill/experiment.yaml
Normal file
100
experiments/openebs/openebs-nfs-provisioner-kill/experiment.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Kill the OpenEBS NFS provisioner container and check if pods consuming the NFS PVs continue to be available and volumes are writable (RWM mode)
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-nfs-provisioner-kill
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
name: openebs-nfs-provisioner-kill
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
- apiGroups:
|
||||
- ""
|
||||
- "apps"
|
||||
- "litmuschaos.io"
|
||||
- "batch"
|
||||
- "extensions"
|
||||
- "storage.k8s.io"
|
||||
resources:
|
||||
- "pods"
|
||||
- "pods/exec"
|
||||
- "pods/log"
|
||||
- "deployments"
|
||||
- "events"
|
||||
- "jobs"
|
||||
- "configmaps"
|
||||
- "services"
|
||||
- "persistentvolumeclaims"
|
||||
- "storageclasses"
|
||||
- "persistentvolumes"
|
||||
- "chaosexperiments"
|
||||
- "chaosresults"
|
||||
- "chaosengines"
|
||||
verbs:
|
||||
- "create"
|
||||
- "list"
|
||||
- "get"
|
||||
- "patch"
|
||||
- "update"
|
||||
- "delete"
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- "nodes"
|
||||
verbs:
|
||||
- "get"
|
||||
- "list"
|
||||
|
||||
image: "litmuschaos/ansible-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/openebs/openebs-nfs-provisioner-kill/openebs_nfs_provisioner_kill_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: ANSIBLE_STDOUT_CALLBACK
|
||||
value: 'default'
|
||||
|
||||
# NFS default container
|
||||
- name: TARGET_CONTAINER
|
||||
value: 'nfs-provisioner'
|
||||
|
||||
# Period to wait before injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# It supports pumba and containerd
|
||||
- name: LIB
|
||||
value: 'pumba'
|
||||
|
||||
# LIB_IMAGE can be - gaiaadm/pumba:0.6.5, gprasath/crictl:ci
|
||||
# For pumba image use: gaiaadm/pumba:0.6.5
|
||||
# For containerd image use: gprasath/crictl:ci
|
||||
- name: LIB_IMAGE
|
||||
value: 'gaiaadm/pumba:0.6.5'
|
||||
|
||||
# provide the chaos interval
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '10'
|
||||
|
||||
# provide the total chaos duration
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '20'
|
||||
|
||||
labels:
|
||||
name: openebs-nfs-provisioner-kill
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
configmaps:
|
||||
- name: openebs-nfs-provisioner-kill
|
||||
mountPath: /mnt/
|
@@ -0,0 +1,42 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-nfs-provisioner-kill
|
||||
version: 0.1.3
|
||||
annotations:
|
||||
categories: OpenEBS
|
||||
vendor: CNCF
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: openebs-nfs-kill-chaos
|
||||
categoryDescription: >
|
||||
Kill the OpenEBS NFS provisioner container and check if pods consuming the NFS PVs continue to be available and volumes are writable (RWM mode)
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- K8S
|
||||
- OpenEBS
|
||||
- NFS
|
||||
platforms:
|
||||
- GKE
|
||||
maturity: alpha
|
||||
chaosType: infra
|
||||
maintainers:
|
||||
- name: Raj Babu Das
|
||||
email: raj.das@mayadata.io
|
||||
minKubeVersion: 1.12.0
|
||||
provider:
|
||||
name: Mayadata
|
||||
labels:
|
||||
app.kubernetes.io/component: chartserviceversion
|
||||
app.kubernetes.io/version: latest
|
||||
links:
|
||||
- name: Source Code
|
||||
url: https://github.com/litmuschaos/litmus-ansible/tree/master/experiments/openebs/openebs-nfs-provisioner-kill
|
||||
- name: Documentation
|
||||
url: https://v1-docs.litmuschaos.io/docs/openebs-nfs-provisioner-kill/
|
||||
- name: Video
|
||||
url:
|
||||
icon:
|
||||
- url: ""
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-nfs-provisioner-kill/experiment.yaml
|
37
experiments/openebs/openebs-nfs-provisioner-kill/rbac.yaml
Normal file
37
experiments/openebs/openebs-nfs-provisioner-kill/rbac.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: nfs-chaos-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: nfs-chaos-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: nfs-chaos-sa
|
||||
labels:
|
||||
name: nfs-chaos-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
rules:
|
||||
- apiGroups: ["","apps","litmuschaos.io","batch","extensions","storage.k8s.io"]
|
||||
resources: ["pods","pods/exec","pods/log", "deployments","events","jobs","configmaps","services","persistentvolumeclaims","storageclasses","persistentvolumes","chaosexperiments","chaosresults","chaosengines"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: nfs-chaos-sa
|
||||
labels:
|
||||
name: nfs-chaos-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: nfs-chaos-sa
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: nfs-chaos-sa
|
||||
namespace: default
|
Reference in New Issue
Block a user