Create static experiments files
This commit is contained in:
91
charts/kubernetes/experiments/k8s_all_exp_crd.yaml
Normal file
91
charts/kubernetes/experiments/k8s_all_exp_crd.yaml
Normal file
@@ -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
|
||||
---
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
---
|
@@ -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
|
||||
---
|
Reference in New Issue
Block a user