(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:
committed by
Chandan Kumar
parent
bf51f24e9f
commit
469418b296
@@ -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
|
50
charts/coredns/coredns-pod-delete/experiment.yaml
Normal file
50
charts/coredns/coredns-pod-delete/experiment.yaml
Normal 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
|
42
charts/coredns/coredns.chartserviceversion.yaml
Normal file
42
charts/coredns/coredns.chartserviceversion.yaml
Normal 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
|
5
charts/coredns/coredns.package.yaml
Normal file
5
charts/coredns/coredns.package.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
packageName: coredns
|
||||
experiments:
|
||||
- name: coredns-pod-delete
|
||||
CSV: coredns-pod-delete.chartserviceversion.yaml
|
||||
desc: "coredns pod delete experiment"
|
51
charts/coredns/experiments.yaml
Normal file
51
charts/coredns/experiments.yaml
Normal 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
|
||||
---
|
BIN
charts/coredns/icons/coredns-pod-delete.png
Normal file
BIN
charts/coredns/icons/coredns-pod-delete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Reference in New Issue
Block a user