forked from EduardRosert/locust-wms-load-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-locust-wms-test.yaml
57 lines (57 loc) · 1.23 KB
/
k8s-locust-wms-test.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
51
52
53
54
55
56
57
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: locust-wms
name: locust-wms
spec:
replicas: 1
selector:
matchLabels:
app: locust-wms
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: locust-wms
spec:
containers:
- image: eduardrosert/locust-wms-test
imagePullPolicy: IfNotPresent
name: locust-wms
env:
- name: WMS_SERVICE_URL
value: "https://example.com/wms"
#- name: WMS_ACCESS_KEY
# value: "myauthkey=mysecretaccesstoken"
#- name: WEIGHT_GET_CAPABILITIES
# value: 1
#- name: WEIGHT_GET_LEGEND_GRAPHIC
# value: 2
#- name: WEIGHT_GET_MAP
# value: 10
#- name: LOG_VERBOSE
# value: 1
command: ["/bin/bash", "-c"]
args: [ "locust -f /app/wms-load-test/locustfile.py --host=$WMS_SERVICE_URL"]
resources: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
labels:
app: locust-wms
name: locust-wms
spec:
ports:
- port: 8089
protocol: TCP
targetPort: 8089
selector:
app: locust-wms
type: NodePort