(feat): Modification in pod-network-loss experiment CR (#49)

* (feat): Modification in pod-network-loss experiment CR

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>

* (refactor): Modification in pod network loss  experiment CR

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
This commit is contained in:
UDIT GAURAV
2019-11-11 19:46:33 +05:30
committed by Karthik Satchitanand
parent 12f5078fff
commit ee03150e8e
2 changed files with 37 additions and 6 deletions

View File

@@ -5,9 +5,28 @@ description:
kind: ChaosExperiment
metadata:
name: pod-network-loss
version: 0.1.2
version: 0.1.3
spec:
definition:
permissions:
apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "daemonsets"
- "statefulsets"
- "deployments"
- "jobs"
- "pods"
- "pods/exec"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "*"
image: "litmuschaos/ansible-runner:ci"
args:
- -c
@@ -15,15 +34,24 @@ spec:
command:
- /bin/bash
env:
- name: TARGET_CONTAINER
value: ""
value: ''
- name: NETWORK_INTERFACE
value: "eth0"
value: 'eth0'
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: "100" #in PERCENTAGE
value: '100' #in PERCENTAGE
- name: TOTAL_CHAOS_DURATION
value: "60000" #in ms
value: '60000' #in ms
- name: LIB
value: "pumba"
value: 'pumba'
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.4.8'
labels:
name: pod-network-loss

View File

@@ -17,6 +17,9 @@ spec:
keywords:
- Kubernetes
- Network
platforms:
- GKE
- OpenShift
maturity: alpha
maintainers:
- name: ksatchit