mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-14 01:04:09 +00:00
27 lines
562 B
YAML
27 lines
562 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: mongodb
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: mongodb
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: mongodb
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: mongodb
|
||
|
image: mongo:3.2.16
|
||
|
command: ["mongod", "--smallfiles", "--nojournal", "--storageEngine", "wiredTiger"]
|
||
|
ports:
|
||
|
- containerPort: 27017
|
||
|
volumeMounts:
|
||
|
- mountPath: /data/db
|
||
|
name: data
|
||
|
volumes:
|
||
|
- name: data
|
||
|
emptyDir: {}
|