Files
litmus-hub/charts/generic/pod-network-duplication/experiment.yaml
2020-08-20 19:29:58 +05:30

68 lines
1.3 KiB
YAML

apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Injects network packet duplication on pods belonging to an app deployment
kind: ChaosExperiment
metadata:
name: pod-network-duplication
version: 0.1.3
spec:
definition:
scope: Namespaced
permissions:
- apiGroups:
- ""
- "batch"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "pods/log"
- "events"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "get"
- "list"
- "patch"
- "create"
- "update"
- "delete"
image: "litmuschaos/go-runner:latest"
args:
- -c
- ./experiments/pod-network-duplication
command:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '60'
- name: RAMP_TIME
value: ''
- name: TARGET_CONTAINER
value: ''
- name: TC_IMAGE
value: 'gaiadocker/iproute2'
- name: NETWORK_INTERFACE
value: 'eth0'
- name: NETWORK_PACKET_DUPLICATION_PERCENTAGE
value: '100' # in percentage
- name: LIB
value: 'pumba'
- name: TARGET_POD
value: ''
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest'
labels:
name: pod-network-duplication