Skip to content

Commit 2e13e60

Browse files
committed
Add internal path for loadtest
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent 9314737 commit 2e13e60

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

test/e2e/loadtest/backend/loadtest-target-routegroup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
- backendName: simulation
1212
hosts:
1313
- %TARGET%.%ZONE%
14-
- %TARGET%.ingress.cluster.local
14+
- loadtest-e2e.ingress.cluster.local
1515
routes:
1616
- pathSubtree: /
1717
filters:

test/e2e/loadtest/client/loadtest-config.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ metadata:
88
data:
99
routes.eskip: |
1010
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: |
1314
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

test/e2e/loadtest/client/loadtest-deployment.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
- name: RATE
7171
value: "1000/1s"
7272
- name: TARGET_VARIANT
73-
value: "get.txt"
73+
value: "get_external.txt"
7474
- name: SLEEP_TIME
7575
value: "10"
7676
- name: DURATION
@@ -88,6 +88,28 @@ spec:
8888
volumeMounts:
8989
- name: cfg
9090
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
91113
dnsPolicy: ClusterFirst
92114
restartPolicy: Always
93115
volumes:

test/e2e/start-load-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ echo "provision namespace: loadtest-e2e"
9898
kubectl create namespace loadtest-e2e
9999

100100
echo "provision loadtest backend with target https://${TARGET}.${ZONE}"
101-
kubectl create -f ./loadtest/backend
101+
kubectl apply -f ./loadtest/backend
102102

103103
# we do not want to fail on failing curl
104104
set +e
@@ -117,7 +117,7 @@ done
117117
set -e
118118

119119
echo "provision loadtest client"
120-
kubectl create -f ./loadtest/client
120+
kubectl apply -f ./loadtest/client
121121

122122
echo "load test started, waiting ${sleep_seconds} seconds"
123123
sleep "$sleep_seconds"

0 commit comments

Comments
 (0)