(feat): Adding coredns experiment charts (#82)

* adding coredns pod delete experiment chart

Signed-off-by: Raj <raj.das@mayadata.io>
This commit is contained in:
Raj Babu Das
2019-12-30 12:06:20 +05:30
committed by Chandan Kumar
parent bf51f24e9f
commit 469418b296
7 changed files with 189 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion
metadata:
name: coredns-pod-delete
version: 0.1.0
annotations:
categories: CoreDNS
vendor: CNCF
createdAt: 2019-12-27T10:28:08Z
support: https://slack.cncf.io/
spec:
displayName: coredns-pod-delete
categoryDescription: |
Pod delete contains chaos to disrupt state of coredns resources. Experiments can inject random pod delete failures against specified application.
- Causes (forced/graceful) pod failure of coredns replicas of an application deployment.
- Tests of successful resolution of app services during chaos injection
keywords:
- Kubernetes
- CoreDNS
- Pod delete
platforms:
- GKE
- Minikube
maturity: alpha
maintainers:
- name: Raj Babu Das
email: raj.das@mayadata.io
minKubeVersion: 1.12.0
provider:
name: Mayadata
links:
- name: CoreDNS Website
url: https://coredns.io
- name: Source Code
url: https://github.com/coredns/coredns
- name: CoreDNS Slack
url: https://slack.cncf.io/
- name: Documentation
url: https://coredns.io/manual/toc/
chaosexpcrdlink: https://raw.githubusercontent.com/litmuchaos/chaos-charts/master/charts/coredns/coredns-pod-delete/experiment.yaml

View File

@@ -0,0 +1,50 @@
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Deletes coredns pod in kube-system namespace
kind: ChaosExperiment
metadata:
name: coredns-pod-delete
version: 0.1.0
spec:
definition:
permissions:
apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "daemonsets"
- "jobs"
- "pods"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "*"
image: "litmuschaos/ansible-runner:ci"
args:
- -c
- ansible-playbook ./experiments/coredns/pod_delete/pod_delete_ansible_logic.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: FORCE
value: 'true'
- name: CHAOS_INTERVAL
value: '5'
- name: LIB
value: ''
labels:
name: coredns-pod-delete

View File

@@ -0,0 +1,42 @@
apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion
metadata:
name: coredns
version: 0.1.0
annotations:
categories: Kubernetes
chartDescription: Injects coredns chaos
spec:
displayName: CoreDNS chaos
categoryDescription: >
CoreDNS is an open-source system for dns management of containerized applications.
It helps to resolve services to IP address. It will install all the experiments which can be used to inject chaos into containerized appications.
experiments:
- coredns-pod-delete
keywords:
- Kubernetes
- Container
- node
- pod
- DNS
maintainers:
- name: Raj Babu Das
email: raj.das@mayadata.io
minKubeVersion: 1.12.0
provider:
name: Mayadata
links:
- name: CoreDNS Website
url: https://coredns.io
- name: Source Code
url: https://github.com/coredns/coredns
- name: CoreDNS Slack
url: https://slack.cncf.io/
- name: Documentation
url: https://coredns.io/manual/toc/
icon:
- url: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/coredns/icons/coredns-pod-delete.png
mediatype: image/png
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/coredns/experiments.yaml

View File

@@ -0,0 +1,5 @@
packageName: coredns
experiments:
- name: coredns-pod-delete
CSV: coredns-pod-delete.chartserviceversion.yaml
desc: "coredns pod delete experiment"

View File

@@ -0,0 +1,51 @@
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Deletes coredns pod in kube-system namespace
kind: ChaosExperiment
metadata:
name: coredns-pod-delete
version: 0.1.0
spec:
definition:
permissions:
apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "daemonsets"
- "jobs"
- "pods"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "*"
image: "litmuschaos/ansible-runner:ci"
args:
- -c
- ansible-playbook ./experiments/coredns/pod_delete/pod_delete_ansible_logic.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: FORCE
value: 'true'
- name: CHAOS_INTERVAL
value: '5'
- name: LIB
value: ''
labels:
name: coredns-pod-delete
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -9,7 +9,7 @@ metadata:
spec:
displayName: Generic Chaos
categoryDescription: >
Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. Install will all the experiments which can be used to inject chaos into containerized appications.
Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. It will install all the experiments which can be used to inject chaos into containerized appications.
experiments:
- pod-network-loss