From afa67c63dad4781355e021665b75dd94216bfc83 Mon Sep 17 00:00:00 2001 From: Steven Barthen Date: Wed, 22 Mar 2023 13:41:07 +0100 Subject: [PATCH] feat: add in-memory cache folder --- wekan/templates/deployment.yaml | 12 ++++++++++++ wekan/values.yaml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/wekan/templates/deployment.yaml b/wekan/templates/deployment.yaml index 1f2834e..2b7f1af 100644 --- a/wekan/templates/deployment.yaml +++ b/wekan/templates/deployment.yaml @@ -63,6 +63,11 @@ spec: path: / port: 8080 initialDelaySeconds: 60 + {{ if .Values.cacheFolder.enabled }} + volumeMounts: + - name: cache-volume + mountPath: /data + {{ end }} resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} @@ -77,3 +82,10 @@ spec: tolerations: {{ toYaml . | indent 8 }} {{- end }} + {{ if .Values.cacheFolder.enabled }} + volumes: + - name: cache-volume + emptyDir: + medium: "Memory" + sizeLimit: {{ .Values.cacheFolder.storage }} + {{ end }} diff --git a/wekan/values.yaml b/wekan/values.yaml index 451bd28..ecfe176 100644 --- a/wekan/values.yaml +++ b/wekan/values.yaml @@ -110,6 +110,12 @@ deploymentLabels: {} # Optional custom labels for the pods created by the deployment. podLabels: {} +# That cache folder (/data) is required to move attachments between MongoDB GridFS and filesystem. +# Without that setting WeKan does not work properly +cacheFolder: + enabled: true + storage: 64Mi + # ------------------------------------------------------------------------------ # MongoDB: # ref: https://github.com/bitnami/charts/blob/master/bitnami/mongodb/values.yaml