-
Notifications
You must be signed in to change notification settings - Fork 2
/
chaos-experiment-bonus.yaml
42 lines (38 loc) · 1.15 KB
/
chaos-experiment-bonus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: elmo-bonus
namespace: elmo
spec:
# It can be delete/retain
jobCleanUpPolicy: 'delete'
# It can be true/false
annotationCheck: 'false'
# It can be active/stop
engineState: 'active'
appinfo:
appns: 'elmo'
# FYI, To see app label, apply kubectl get pods --show-labels
applabel: 'app=elmo-app'
appkind: 'deployment'
chaosServiceAccount: elmo-attack-sa
experiments:
- name: pod-network-latency
spec:
components:
env:
#Network interface inside target container
- name: NETWORK_INTERFACE
value: 'eth0'
- name: NETWORK_LATENCY
value: '2000'
- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds
# provide the name of container runtime
# for litmus LIB, it supports docker, containerd, crio
# for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the socket file path
- name: SOCKET_PATH
value: '/var/run/docker.sock'