(feat): Modification in pod-network-latency experiment CR (#48)

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

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

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

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

View File

@@ -5,9 +5,28 @@ description:
kind: ChaosExperiment
metadata:
name: pod-network-latency
version: 0.1.1
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_LATENCY
value: "60000" #in ms
value: '60000' #in ms
- 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-latency

View File

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