Skip to content

Commit

Permalink
Merge pull request wekan#15 from Nightreaver/feat/cache_folder
Browse files Browse the repository at this point in the history
feat: add in-memory cache folder for /data
  • Loading branch information
xet7 authored Mar 23, 2023
2 parents 8ac2baf + afa67c6 commit c504a92
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wekan/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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 }}
Expand All @@ -75,3 +80,10 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{ if .Values.cacheFolder.enabled }}
volumes:
- name: cache-volume
emptyDir:
medium: "Memory"
sizeLimit: {{ .Values.cacheFolder.storage }}
{{ end }}
6 changes: 6 additions & 0 deletions wekan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c504a92

Please sign in to comment.