Initial commit

This commit is contained in:
Elmar Kresse
2025-06-17 15:56:56 +02:00
commit 85bcc8f88d
14 changed files with 469 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: overleaf
spec:
replicas: 1
selector:
matchLabels:
app: overleaf
template:
metadata:
labels:
app: overleaf
spec:
containers:
- name: overleaf
image: {{ .Values.overleaf.image }}
ports:
- containerPort: {{ .Values.overleaf.port }}
env:
- name: OVERLEAF_APP_NAME
value: {{ .Values.overleaf.appName | quote }}
- name: OVERLEAF_SITE_LANGUAGE
value: {{ .Values.overleaf.siteLanguage | quote }}
- name: OVERLEAF_MONGO_URL
value: 'mongodb://{{ .Values.mongo.rootUser }}:{{ .Values.mongo.rootPassword }}@mongo:27017/{{ .Values.mongo.initDb }}?replicaSet={{ .Values.mongo.replSet }}'
- name: OVERLEAF_REDIS_HOST
value: redis
- name: REDIS_HOST
value: redis
- name: ENABLED_LINKED_FILE_TYPES
value: project_file,project_output_file
- name: ENABLE_CONVERSIONS
value: {{ .Values.overleaf.enableConversions | quote }}
- name: EMAIL_CONFIRMATION_DISABLED
value: {{ .Values.overleaf.emailConfirmationDisabled | quote }}
- name: TEXMFVAR
value: {{ .Values.overleaf.texmfvar | quote }}
- name: OVERLEAF_SITE_URL
value: {{ .Values.overleaf.siteUrl | quote }}
- name: OVERLEAF_NAV_TITLE
value: {{ .Values.overleaf.navTitle | quote }}
- name: OVERLEAF_ADMIN_EMAIL
value: {{ .Values.overleaf.adminEmail | quote }}
- name: OVERLEAF_LEFT_FOOTER
value: {{ .Values.overleaf.leftFooter | quote }}
- name: OVERLEAF_RIGHT_FOOTER
value: {{ .Values.overleaf.rightFooter | quote }}
volumeMounts:
- name: overleaf-data
mountPath: {{ .Values.overleaf.volumeMount }}
resources:
requests:
cpu: {{ .Values.resources.overleaf.requests.cpu }}
memory: {{ .Values.resources.overleaf.requests.memory }}
limits:
cpu: {{ .Values.resources.overleaf.limits.cpu }}
memory: {{ .Values.resources.overleaf.limits.memory }}
volumes:
- name: overleaf-data
persistentVolumeClaim:
claimName: {{ .Values.persistence.overleafData }}