mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/k8s/services/overleaf-cep.git
synced 2025-08-30 16:43:52 +02:00
Initial commit
This commit is contained in:
49
overleaf-helm-chart/templates/deployment-mongo.yaml
Normal file
49
overleaf-helm-chart/templates/deployment-mongo.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mongo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mongo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mongo
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1001
|
||||
fsGroup: 0
|
||||
containers:
|
||||
- name: mongo
|
||||
image: {{ .Values.mongo.image }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.mongo.port }}
|
||||
env:
|
||||
- name: MONGODB_REPLICA_SET_MODE
|
||||
value: primary
|
||||
- name: MONGODB_REPLICA_SET_NAME
|
||||
value: {{ .Values.mongo.replSet }}
|
||||
- name: MONGODB_ROOT_USER
|
||||
value: {{ .Values.mongo.rootUser | quote }}
|
||||
- name: MONGODB_ROOT_PASSWORD
|
||||
value: {{ .Values.mongo.rootPassword | quote }}
|
||||
- name: MONGODB_DATABASE
|
||||
value: {{ .Values.mongo.initDb | quote }}
|
||||
- name: MONGODB_REPLICA_SET_KEY
|
||||
value: {{ .Values.mongo.replSetKey | quote }}
|
||||
volumeMounts:
|
||||
- name: mongo-data
|
||||
mountPath: {{ .Values.mongo.volumeMounts.db }}
|
||||
resources:
|
||||
requests:
|
||||
cpu: {{ .Values.resources.mongo.requests.cpu }}
|
||||
memory: {{ .Values.resources.mongo.requests.memory }}
|
||||
limits:
|
||||
cpu: {{ .Values.resources.mongo.limits.cpu }}
|
||||
memory: {{ .Values.resources.mongo.limits.memory }}
|
||||
volumes:
|
||||
- name: mongo-data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistence.mongoData }}
|
Reference in New Issue
Block a user