forked from sabyadi/mongolocust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworker-deployment.yaml
52 lines (52 loc) · 1.27 KB
/
worker-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: locust-worker-deployment
labels:
app: locust-worker
spec:
replicas: 3
selector:
matchLabels:
app: locust-worker
template:
metadata:
labels:
app: locust-worker
spec:
containers:
- name: locust-worker
image: adilet123/mongolocust:latest
imagePullPolicy: Always
env:
- name: CLUSTER_URL
valueFrom:
secretKeyRef:
name: mongo-secret
key: CLUSTER_URL
- name: LOCUST_OPTIONS
value: "--worker --master-host master"
- name: BULK_INSERT_WEIGHT
value: "1"
- name: FIND_WEIGHT
value: "1"
- name: AGG_PIPE_WEIGHT
value: "1"
- name: INSERT_WEIGHT
value: "1"
ports:
- containerPort: 8089
volumeMounts:
- name: load-file
mountPath: /load_test.py
subPath: load_test.py
- name: settings-file
mountPath: /settings.py
subPath: settings.py
volumes:
- name: load-file
configMap:
name: load-file
- name: settings-file
configMap:
name: settings-file