-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathslave-deployment.yaml
52 lines (52 loc) · 1.25 KB
/
slave-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: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
role: locust-slave
name: locust-slave
spec:
replicas: 2
selector:
matchLabels:
role: locust-slave
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
role: locust-slave
spec:
containers:
- image: grubykarol/locust:0.8.1-py3.6
imagePullPolicy: IfNotPresent
name: locust-slave
env:
- name: ATTACKED_HOST
valueFrom:
configMapKeyRef:
name: locust-cm
key: ATTACKED_HOST
- name: LOCUST_MODE
value: SLAVE
- name: LOCUST_MASTER
value: locust-master
volumeMounts:
- mountPath: /locust
name: locust-scripts
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: locust-scripts
configMap:
name: scripts-cm