26df5f0203c665932962dc1b09a211c23cb15f25
[multicloud/k8s.git] / vagrant / tests / vnfs / edgex / kubernetes / deployments / mongo-deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   labels:
5     io.kompose.service: edgex-mongo
6   name: edgex-mongo
7 spec:
8   selector:
9       matchLabels:
10         io.kompose.service: edgex-mongo
11   replicas: 1
12   template:
13     metadata:
14       labels:
15         io.kompose.service: edgex-mongo
16     spec:
17       containers:
18       - image: edgexfoundry/docker-edgex-mongo:0.2
19         name: edgex-mongo
20         ports:
21         - containerPort: 27017
22         resources: {}
23         volumeMounts:
24         - mountPath: /data/db
25           name: data-db
26         - mountPath: /edgex/logs
27           name: edgex-logs
28         - mountPath: /consul/config
29           name: consul-config
30         - mountPath: /consul/data
31           name: consul-data
32       restartPolicy: Always
33       volumes:
34       - name: data-db
35         hostPath:
36           path: /data/db
37       - name: edgex-logs
38         hostPath:
39           path: /edgex/logs
40       - name: consul-config
41         hostPath:
42           path: /consul/config
43       - name: consul-data
44         hostPath:
45           path: /consul/data
46 status: {}