diff --git a/charts/openebs/icons/openebs-control-plane-validation.png b/charts/openebs/icons/openebs-control-plane-validation.png new file mode 100644 index 0000000..db1d3e7 Binary files /dev/null and b/charts/openebs/icons/openebs-control-plane-validation.png differ diff --git a/charts/openebs/openebs-control-plane-validation/engine.yaml b/charts/openebs/openebs-control-plane-validation/engine.yaml new file mode 100644 index 0000000..6e93423 --- /dev/null +++ b/charts/openebs/openebs-control-plane-validation/engine.yaml @@ -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: '' diff --git a/charts/openebs/openebs-control-plane-validation/experiment.yaml b/charts/openebs/openebs-control-plane-validation/experiment.yaml new file mode 100644 index 0000000..03ddc24 --- /dev/null +++ b/charts/openebs/openebs-control-plane-validation/experiment.yaml @@ -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 \ No newline at end of file diff --git a/charts/openebs/openebs-control-plane-validation/openebs-control-plane-validation.chartserviceversion.yaml b/charts/openebs/openebs-control-plane-validation/openebs-control-plane-validation.chartserviceversion.yaml new file mode 100644 index 0000000..571816d --- /dev/null +++ b/charts/openebs/openebs-control-plane-validation/openebs-control-plane-validation.chartserviceversion.yaml @@ -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 \ No newline at end of file diff --git a/charts/openebs/openebs-control-plane-validation/rbac.yaml b/charts/openebs/openebs-control-plane-validation/rbac.yaml new file mode 100644 index 0000000..c379d45 --- /dev/null +++ b/charts/openebs/openebs-control-plane-validation/rbac.yaml @@ -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