diff --git a/charts/kubernetes/experiments/k8s_all_exp_crd.yaml b/charts/kubernetes/experiments/k8s_all_exp_crd.yaml new file mode 100644 index 0000000..f34902b --- /dev/null +++ b/charts/kubernetes/experiments/k8s_all_exp_crd.yaml @@ -0,0 +1,91 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: "Kills a container belonging to an application pod \n" +kind: ChaosExperiment +metadata: + name: kubernetes-state-container-kill-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/container_kill/test.yml -i /etc/ansible/hosts + -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TARGET_CONTAINER + #value: nginx + value: front-end + - name: KILL_MODE + value: "" + - name: LIB + value: "" + image: "" + labels: + name: container-kill + litmusbook: /experiments/chaos/kubernetes/container_kill/run_litmus_test.yml +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: kubernetes-state-pod-delete-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.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: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + image: "" + labels: + name: pod-delete + litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: kubernetes-network-pod-nw-delay-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/pod_nw_delay/test.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: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + image: "" + labels: + name: pod-nw-delay + litmusbook: /experiments/chaos/kubernetes/pod_nw_delay/run_litmus_test.yml +--- diff --git a/charts/kubernetes/kubernetes.chartserviceversion.v0.1.0.yaml b/charts/kubernetes/kubernetes.chartserviceversion.v0.1.0.yaml index d243396..69f7ed6 100644 --- a/charts/kubernetes/kubernetes.chartserviceversion.v0.1.0.yaml +++ b/charts/kubernetes/kubernetes.chartserviceversion.v0.1.0.yaml @@ -12,7 +12,7 @@ metadata: spec: displayName: Kubernetes description: > - **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 all will install the following subcharts + 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 all will install the following subcharts - State - Network diff --git a/charts/kubernetes/kubernetes.chartserviceversion.yaml b/charts/kubernetes/kubernetes.chartserviceversion.yaml index b60dce8..64b207b 100644 --- a/charts/kubernetes/kubernetes.chartserviceversion.yaml +++ b/charts/kubernetes/kubernetes.chartserviceversion.yaml @@ -12,7 +12,7 @@ metadata: spec: displayName: Kubernetes description: > - **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 all will install the following subcharts + 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 all will install the following subcharts - State - Network diff --git a/charts/kubernetes/network/experiments/k8s_nw_all_exp_crd.yaml b/charts/kubernetes/network/experiments/k8s_nw_all_exp_crd.yaml new file mode 100644 index 0000000..17ddcd8 --- /dev/null +++ b/charts/kubernetes/network/experiments/k8s_nw_all_exp_crd.yaml @@ -0,0 +1,31 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: kubernetes-network-pod-nw-delay-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/pod_nw_delay/test.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: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + image: "" + labels: + name: pod-nw-delay + litmusbook: /experiments/chaos/kubernetes/pod_nw_delay/run_litmus_test.yml +--- diff --git a/charts/kubernetes/state/experiments/k8s_state_all_exp_crd.yaml b/charts/kubernetes/state/experiments/k8s_state_all_exp_crd.yaml new file mode 100644 index 0000000..3f9808c --- /dev/null +++ b/charts/kubernetes/state/experiments/k8s_state_all_exp_crd.yaml @@ -0,0 +1,61 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: kubernetes-state-pod-delete-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.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: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + image: "" + labels: + name: pod-delete + litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: "Kills a container belonging to an application pod \n" +kind: ChaosExperiment +metadata: + name: kubernetes-state-container-kill-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/container_kill/test.yml -i /etc/ansible/hosts + -vv; exit 0 + command: + - /bin/bash + env: + - name: ANSIBLE_STDOUT_CALLBACK + value: default + - name: TARGET_CONTAINER + #value: nginx + value: front-end + - name: KILL_MODE + value: "" + - name: LIB + value: "" + image: "" + labels: + name: container-kill + litmusbook: /experiments/chaos/kubernetes/container_kill/run_litmus_test.yml +--- diff --git a/charts/openebs/experiments/openebs_all_exp_crd.yaml b/charts/openebs/experiments/openebs_all_exp_crd.yaml new file mode 100644 index 0000000..cd39d9f --- /dev/null +++ b/charts/openebs/experiments/openebs_all_exp_crd.yaml @@ -0,0 +1,31 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: kubernetes-state-pod-delete-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.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: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + image: "" + labels: + name: pod-delete + litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml +--- diff --git a/charts/openebs/openebs.chartserviceversion.v0.1.0.yaml b/charts/openebs/openebs.chartserviceversion.v0.1.0.yaml index 0502817..094e4fd 100644 --- a/charts/openebs/openebs.chartserviceversion.v0.1.0.yaml +++ b/charts/openebs/openebs.chartserviceversion.v0.1.0.yaml @@ -8,11 +8,11 @@ metadata: createdAt: 2019-08-12T10:28:08Z repository: https://github.com/litmuschaos/community-charts support: https://slack.openebs.io/ - description: Injects generic kubernetes chaos + description: Injects generic openebs chaos spec: displayName: OpenEBS description: > - **OpenEBS** is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace. Install all will install the following subcharts + OpenEBS is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace. Install all will install the following subcharts **State** subcharts: diff --git a/charts/openebs/openebs.chartserviceversion.yaml b/charts/openebs/openebs.chartserviceversion.yaml index 4761f09..9595d1d 100644 --- a/charts/openebs/openebs.chartserviceversion.yaml +++ b/charts/openebs/openebs.chartserviceversion.yaml @@ -12,9 +12,8 @@ metadata: spec: displayName: OpenEBS description: > - **OpenEBS** is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace. Install all will install the following subcharts + OpenEBS is the most active Container Attached Storage project. OpenEBS enables your DevOps teams to have their own storage policies for every workload and it is truly Kubernetes native and 100% in userspace. Install all will install the following subcharts - **State** subcharts: - State diff --git a/charts/openebs/state/experiments/openebs_state_all_exp_crd.yaml b/charts/openebs/state/experiments/openebs_state_all_exp_crd.yaml new file mode 100644 index 0000000..4ffc767 --- /dev/null +++ b/charts/openebs/state/experiments/openebs_state_all_exp_crd.yaml @@ -0,0 +1,30 @@ +--- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Deletes a pod belonging to a deployment/statefulset/daemonset +kind: ChaosExperiment +metadata: + name: kubernetes-state-pod-delete-v0.1.0 + version: v0.1.0 +spec: + definition: + args: + - -c + - ansible-playbook ./experiments/chaos/kubernetes/pod_delete/test.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: CHAOS_INTERVAL + value: 5 + - name: LIB + value: "" + image: "" + labels: + name: pod-delete + litmusbook: /experiments/chaos/kubernetes/pod_delete/run_litmus_test.yml diff --git a/charts/openebs/state/state.chartserviceversion.yaml b/charts/openebs/state/state.chartserviceversion.yaml index d39ed8c..878e9c7 100644 --- a/charts/openebs/state/state.chartserviceversion.yaml +++ b/charts/openebs/state/state.chartserviceversion.yaml @@ -36,4 +36,4 @@ spec: mediatype: "" experiments: - target-pod-delete-exp.yaml - + chaosexpcrdlink: