-
Notifications
You must be signed in to change notification settings - Fork 0
/
dep-mock-server.yaml
43 lines (42 loc) · 1.05 KB
/
dep-mock-server.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
role: mock-server
name: mock-server
spec:
replicas: 1
selector:
matchLabels:
role: mock-server
template:
metadata:
labels:
role: mock-server
spec:
containers:
- image: localhost:32000/mqmock
imagePullPolicy: IfNotPresent
name: mock-server
env:
- name: MOCKSERVER_PROPERTY_FILE
valueFrom:
configMapKeyRef:
name: mock-server-config
key: MOCKSERVER_PROPERTY_FILE
- name: MOCKSERVER_INITIALIZATION_JSON_PATH
valueFrom:
configMapKeyRef:
name: mock-server-config
key: MOCKSERVER_INITIALIZATION_JSON_PATH
volumeMounts:
- mountPath: /config
name: initaliser
ports:
- containerPort: 1080
volumes:
- name: initaliser
hostPath:
path: /home/matt/dev/locust-docker-compose/build/mockserver/resources