mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-02 03:40:17 +00:00
46 lines
852 B
YAML
46 lines
852 B
YAML
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: mongodb-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 10Gi # Adjust size as needed
|
|
|
|
---
|
|
|
|
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:latest
|
|
ports:
|
|
- containerPort: 27017
|
|
resources:
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "0.5"
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
volumeMounts:
|
|
- name: mongodb-data
|
|
mountPath: /data/db
|
|
volumes:
|
|
- name: mongodb-data
|
|
persistentVolumeClaim:
|
|
claimName: mongodb-pvc |