(feat): Adding openebs control plane validation chart (#144)
* (feat): Adding openebs control plane pod delete chart Signed-off-by: Raj <raj.das@mayadata.io> * Update engine.yaml Signed-off-by: ksatchit <karthik.s@mayadata.io> * Update rbac.yaml Signed-off-by: ksatchit <karthik.s@mayadata.io> * Update engine.yaml Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
This commit is contained in:
BIN
charts/openebs/icons/openebs-control-plane-validation.png
Normal file
BIN
charts/openebs/icons/openebs-control-plane-validation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
35
charts/openebs/openebs-control-plane-validation/engine.yaml
Normal file
35
charts/openebs/openebs-control-plane-validation/engine.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
kind: ChaosEngine
|
||||
metadata:
|
||||
name: control-plane-chaos
|
||||
namespace: openebs
|
||||
spec:
|
||||
# It can be true/false
|
||||
annotationCheck: 'false'
|
||||
# It can be active/stop
|
||||
engineState: 'active'
|
||||
appinfo:
|
||||
appns: 'openebs'
|
||||
applabel: 'name=maya-apiserver'
|
||||
appkind: 'deployment'
|
||||
chaosServiceAccount: control-plane-sa
|
||||
monitoring: false
|
||||
# It can be delete/retain
|
||||
jobCleanUpPolicy: 'delete'
|
||||
experiments:
|
||||
- name: openebs-control-plane-validation
|
||||
spec:
|
||||
components:
|
||||
env:
|
||||
- name: OPENEBS_NAMESPACE
|
||||
value: 'openebs'
|
||||
|
||||
## Period to wait before injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: '10'
|
||||
|
||||
- name: FORCE
|
||||
value: ''
|
||||
|
||||
- name: LIB
|
||||
value: ''
|
@@ -0,0 +1,70 @@
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Kill all openebs control plane pod and check if gets scheduled again
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
labels:
|
||||
litmuschaos.io/name: openebs
|
||||
name: openebs-control-plane-validation
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
- apiGroups:
|
||||
- ""
|
||||
- "litmuschaos.io"
|
||||
- "batch"
|
||||
- "apps"
|
||||
resources:
|
||||
- "pods"
|
||||
- "deployments"
|
||||
- "jobs"
|
||||
- "configmaps"
|
||||
- "chaosengines"
|
||||
- "chaosexperiments"
|
||||
- "chaosresults"
|
||||
verbs:
|
||||
- "create"
|
||||
- "list"
|
||||
- "get"
|
||||
- "patch"
|
||||
- "update"
|
||||
- "delete"
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- "nodes"
|
||||
verbs:
|
||||
- "get"
|
||||
- "list"
|
||||
|
||||
image: "litmuschaos/ansible-runner:latest"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/openebs/openebs-control-plane-validation/openebs_control_plane_validation_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'
|
||||
|
||||
## Period to wait before injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
- name: FORCE
|
||||
value: ''
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus, powerfulseal
|
||||
- name: LIB
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: openebs-control-plane-validation
|
@@ -0,0 +1,37 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: openebs-control-plane-validation
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: OpenEBS
|
||||
vendor: CNCF
|
||||
support: https://slack.openebs.io/
|
||||
spec:
|
||||
displayName: openebs-control-plane-validation
|
||||
categoryDescription: >
|
||||
Kill all openebs control plane pods and check if gets scheduled again.
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- OpenEBS
|
||||
platforms:
|
||||
- GKE
|
||||
maturity: alpha
|
||||
chaosType: infra
|
||||
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-control-plane-validation
|
||||
- name: Documentation
|
||||
url: https://docs.litmuschaos.io/docs/openebs-control-plane-validation/
|
||||
- name: Video
|
||||
url:
|
||||
icon:
|
||||
- url: ""
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/openebs/openebs-control-plane-validation/experiment.yaml
|
39
charts/openebs/openebs-control-plane-validation/rbac.yaml
Normal file
39
charts/openebs/openebs-control-plane-validation/rbac.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: control-plane-sa
|
||||
namespace: openebs
|
||||
labels:
|
||||
name: control-plane-sa
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: control-plane-sa
|
||||
namespace: openebs
|
||||
labels:
|
||||
name: control-plane-sa
|
||||
rules:
|
||||
- apiGroups: ["","litmuschaos.io","batch","apps"]
|
||||
resources: ["pods","deployments","jobs","configmaps","chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs : ["get","list"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: control-plane-sa
|
||||
namespace: openebs
|
||||
labels:
|
||||
name: control-plane-sa
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: control-plane-sa
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: control-plane-sa
|
||||
namespace: openebs
|
Reference in New Issue
Block a user