-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadgens.yaml
50 lines (50 loc) · 940 Bytes
/
loadgens.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
43
44
45
46
47
48
49
50
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: loadgen-ok
namespace: demo
spec:
replicas: 1
selector:
matchLabels:
app: loadgen-ok
template:
metadata:
labels:
app: loadgen-ok
sidecar.istio.io/inject: "true"
spec:
containers:
- name: loadgen
image: alpine:3.14
command:
- sh
- -c
args:
- while sleep 1; do wget -O - http://frontend:3000/ok ; done
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: loadgen-fail
namespace: demo
spec:
replicas: 1
selector:
matchLabels:
app: loadgen-fail
template:
metadata:
labels:
app: loadgen-fail
sidecar.istio.io/inject: "true"
spec:
containers:
- name: loadgen
image: alpine:3.14
command:
- sh
- -c
args:
- while sleep 5; do wget -O - http://frontend:3000/fail ; done