| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- annotations:
- kompose.cmd: kompose convert
- kompose.version: 1.34.0 (cbf2835db)
- labels:
- io.kompose.service: mongo
- name: mongo
- namespace: sharelatex
- spec:
- replicas: 1
- selector:
- matchLabels:
- io.kompose.service: mongo
- strategy:
- type: Recreate
- template:
- metadata:
- annotations:
- kompose.cmd: kompose convert
- kompose.version: 1.34.0 (cbf2835db)
- labels:
- io.kompose.service: mongo
- spec:
- containers:
- - args:
- - --replSet
- - overleaf
- env:
- - name: MONGO_INITDB_DATABASE
- value: sharelatex
- image: mongo:8.0
- livenessProbe:
- exec:
- command:
- - echo 'db.stats().ok' | mongosh localhost:27017/test --quiet
- failureThreshold: 5
- periodSeconds: 10
- timeoutSeconds: 10
- name: mongo
- volumeMounts:
- - mountPath: /data/db
- name: mongo-claim0
- - mountPath: /docker-entrypoint-initdb.d/mongodb-init-replica-set.js
- name: mongo-claim1
- restartPolicy: Always
- volumes:
- - name: mongo-claim0
- persistentVolumeClaim:
- claimName: mongo-claim0
- - name: mongo-claim1
- persistentVolumeClaim:
- claimName: mongo-claim1
|