-
Notifications
You must be signed in to change notification settings - Fork 2
/
locust-master.yaml
70 lines (70 loc) · 1.48 KB
/
locust-master.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
58
59
60
61
62
63
64
65
66
67
68
69
70
kind: Service
apiVersion: v1
metadata:
name: locust-master
labels:
name: locust
role: master
spec:
type: NodePort
ports:
- port: 8089
targetPort: loc-master-web
protocol: TCP
name: loc-master-web
nodePort: 31050
- port: 5557
targetPort: loc-master-p1
protocol: TCP
name: loc-master-p1
nodePort: 31051
- port: 5558
targetPort: loc-master-p2
protocol: TCP
name: loc-master-p2
nodePort: 31052
selector:
name: locust
role: master
---
kind: ReplicationController
apiVersion: v1
metadata:
name: locust-master
labels:
name: locust
role: master
spec:
replicas: 1
selector:
name: locust
role: master
template:
metadata:
labels:
name: locust
role: master
spec:
containers:
- name: locust
image: hora/recipes-rss-locust:0.5
imagePullPolicy: Always
env:
- name: LOCUST_MODE
value: master
- name: TARGET_URL
value: http://edge:9090
- name: INFLUXDB_URL
value: influxdb
- name: INFLUXDB_PORT
value: '8086'
ports:
- name: loc-master-web
containerPort: 8089
protocol: TCP
- name: loc-master-p1
containerPort: 5557
protocol: TCP
- name: loc-master-p2
containerPort: 5558
protocol: TCP