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 | quote }}:{{ .Values.mongo.rootPassword | quote }}@{{ .Values.mongo.host | quote }}:{{ .Values.mongo.port }}/{{ .Values.mongo.initDb | quote }}?authSource=admin&replicaSet={{ .Values.mongo.replSet | quote }}' - 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 }}