-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmongo-deployment.yaml
40 lines (40 loc) · 1017 Bytes
/
mongo-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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert --volumes hostPath -o k8s/overlays/local
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: mongo
name: mongo
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mongo
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert --volumes hostPath -o k8s/overlays/local
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: mongo
spec:
containers:
- image: mongo:8.0.0
name: mongo
volumeMounts:
- mountPath: /data/configdb
name: mongo-configdb
- mountPath: /data/db
name: mongo-db
restartPolicy: Always
volumes:
- persistentVolumeClaim:
claimName: db-config
name: mongo-configdb
- persistentVolumeClaim:
claimName: db-data
name: mongo-db