File tree Expand file tree Collapse file tree 4 files changed +33
-6
lines changed Expand file tree Collapse file tree 4 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 11
11
- backendName : simulation
12
12
hosts :
13
13
- %TARGET%.%ZONE%
14
- - %TARGET% .ingress.cluster.local
14
+ - loadtest-e2e .ingress.cluster.local
15
15
routes :
16
16
- pathSubtree : /
17
17
filters :
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ metadata:
8
8
data :
9
9
routes.eskip : |
10
10
h: PathSubtree("/healthz") -> status(200) -> inlineContent("OK") -> <shunt>;
11
- r: * -> "https://%TARGET%.%ZONE%";
12
- get.txt : |
11
+ e: Host("external.zalan.do") -> "https://%TARGET%.%ZONE%";
12
+ i: Host("internal.zalan.do") -> "http://loadtest-e2e.ingress.cluster.local";
13
+ get_external.txt : |
13
14
GET http://127.0.0.1:9090
15
+ Host: external.zalan.do
16
+ get_internal.txt : |
17
+ GET http://127.0.0.1:9090
18
+ Host: internal.zalan.do
Original file line number Diff line number Diff line change 70
70
- name : RATE
71
71
value : " 1000/1s"
72
72
- name : TARGET_VARIANT
73
- value : " get .txt"
73
+ value : " get_external .txt"
74
74
- name : SLEEP_TIME
75
75
value : " 10"
76
76
- name : DURATION
88
88
volumeMounts :
89
89
- name : cfg
90
90
mountPath : /load-targets
91
+ - env :
92
+ - name : RATE
93
+ value : " 1000/1s"
94
+ - name : TARGET_VARIANT
95
+ value : " get_internal.txt"
96
+ - name : SLEEP_TIME
97
+ value : " 10"
98
+ - name : DURATION
99
+ value : " 1h"
100
+ image : container-registry.zalando.net/teapot/calibrated-loadtest:master-4
101
+ imagePullPolicy : IfNotPresent
102
+ name : e2e-vegeta-internal
103
+ resources :
104
+ limits :
105
+ cpu : " 2"
106
+ memory : 4Gi
107
+ requests :
108
+ cpu : " 2"
109
+ memory : 4Gi
110
+ volumeMounts :
111
+ - name : cfg
112
+ mountPath : /load-targets
91
113
dnsPolicy : ClusterFirst
92
114
restartPolicy : Always
93
115
volumes :
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ echo "provision namespace: loadtest-e2e"
98
98
kubectl create namespace loadtest-e2e
99
99
100
100
echo " provision loadtest backend with target https://${TARGET} .${ZONE} "
101
- kubectl create -f ./loadtest/backend
101
+ kubectl apply -f ./loadtest/backend
102
102
103
103
# we do not want to fail on failing curl
104
104
set +e
117
117
set -e
118
118
119
119
echo " provision loadtest client"
120
- kubectl create -f ./loadtest/client
120
+ kubectl apply -f ./loadtest/client
121
121
122
122
echo " load test started, waiting ${sleep_seconds} seconds"
123
123
sleep " $sleep_seconds "
You can’t perform that action at this time.
0 commit comments