(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 kind: ChaosExperiment
metadata: metadata:
name: pod-network-loss name: pod-network-loss
version: 0.1.2 version: 0.1.3
spec: spec:
definition: 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" image: "litmuschaos/ansible-runner:ci"
args: args:
- -c - -c
@@ -15,15 +34,24 @@ spec:
command: command:
- /bin/bash - /bin/bash
env: env:
- name: TARGET_CONTAINER - name: TARGET_CONTAINER
value: "" value: ''
- name: NETWORK_INTERFACE - name: NETWORK_INTERFACE
value: "eth0" value: 'eth0'
- name: NETWORK_PACKET_LOSS_PERCENTAGE - name: NETWORK_PACKET_LOSS_PERCENTAGE
value: "100" #in PERCENTAGE value: '100' #in PERCENTAGE
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: "60000" #in ms value: '60000' #in ms
- name: LIB - name: LIB
value: "pumba" value: 'pumba'
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.4.8'
labels: labels:
name: pod-network-loss name: pod-network-loss

View File

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