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:
62
overleaf-helm-chart/templates/deployment-sharelatex.yaml
Normal file
62
overleaf-helm-chart/templates/deployment-sharelatex.yaml
Normal 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 }}
|
Reference in New Issue
Block a user