diff --git a/charts/coredns/coredns-pod-delete/coredns-pod-delete.chartserviceversion.yaml b/charts/coredns/coredns-pod-delete/coredns-pod-delete.chartserviceversion.yaml new file mode 100644 index 0000000..d14af94 --- /dev/null +++ b/charts/coredns/coredns-pod-delete/coredns-pod-delete.chartserviceversion.yaml @@ -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 diff --git a/charts/coredns/coredns-pod-delete/experiment.yaml b/charts/coredns/coredns-pod-delete/experiment.yaml new file mode 100644 index 0000000..3309765 --- /dev/null +++ b/charts/coredns/coredns-pod-delete/experiment.yaml @@ -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 \ No newline at end of file diff --git a/charts/coredns/coredns.chartserviceversion.yaml b/charts/coredns/coredns.chartserviceversion.yaml new file mode 100644 index 0000000..da57736 --- /dev/null +++ b/charts/coredns/coredns.chartserviceversion.yaml @@ -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 diff --git a/charts/coredns/coredns.package.yaml b/charts/coredns/coredns.package.yaml new file mode 100644 index 0000000..9fa1e66 --- /dev/null +++ b/charts/coredns/coredns.package.yaml @@ -0,0 +1,5 @@ +packageName: coredns +experiments: + - name: coredns-pod-delete + CSV: coredns-pod-delete.chartserviceversion.yaml + desc: "coredns pod delete experiment" \ No newline at end of file diff --git a/charts/coredns/experiments.yaml b/charts/coredns/experiments.yaml new file mode 100644 index 0000000..2916320 --- /dev/null +++ b/charts/coredns/experiments.yaml @@ -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 +--- \ No newline at end of file diff --git a/charts/coredns/icons/coredns-pod-delete.png b/charts/coredns/icons/coredns-pod-delete.png new file mode 100644 index 0000000..c643b7b Binary files /dev/null and b/charts/coredns/icons/coredns-pod-delete.png differ diff --git a/charts/generic/generic.chartserviceversion.yaml b/charts/generic/generic.chartserviceversion.yaml index a39045e..832f29f 100644 --- a/charts/generic/generic.chartserviceversion.yaml +++ b/charts/generic/generic.chartserviceversion.yaml @@ -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