(feat)experiments: include network chaos in generic chart (#22)
Signed-off-by: ksatchit <karthik.s@openebs.io>
This commit is contained in:
committed by
GitHub
parent
cc52c5f3db
commit
729e458449
29
charts/generic/pod-network-loss/experiment.yaml
Normal file
29
charts/generic/pod-network-loss/experiment.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Injects network packet loss on pods belonging to an app deployment
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: pod-network-loss
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
image: "litmuschaos/ansible-runner:ci"
|
||||
args:
|
||||
- -c
|
||||
- ansible-playbook ./experiments/generic/pod_network_loss/pod_network_loss_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TARGET_CONTAINER
|
||||
value: ""
|
||||
- name: NETWORK_INTERFACE
|
||||
value: "eth0"
|
||||
- name: NETWORK_PACKET_LOSS_PERCENTAGE
|
||||
value: "100" #in %
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: "60000" #in ms
|
||||
- name: LIB
|
||||
value: "pumba"
|
||||
labels:
|
||||
name: pod-network-loss
|
Reference in New Issue
Block a user