8gears / n8n-helm-chart

A Kubernetes Helm chart for n8n a Workflow Automation Tool. Easily automate tasks across different services.
https://artifacthub.io/packages/helm/open-8gears/n8n
Apache License 2.0
187 stars 97 forks source link

The 'mountPath' of the PVC is not correctly pointing to the '/home/node/.n8n' path. #55

Closed alvherrey closed 9 months ago

alvherrey commented 1 year ago

Hello, sorry if I am misunderstanding something, but when I deploy with Helm and enable persistence with the default SQLite database, the persistent volume is mounted at /root/.n8n, while all data is generated under /home/node/.n8n.

This implies that when I delete the pod, all data is lost. A workaround is to modify the deployment and map it to /home/node/.n8n, like this: **volumeMounts:

But modifying the deployment in this way results in a loss of Helm deployment capability.

Environment: kubernetes on k3s n8nio/n8n Tag: 1.6.1 Chart Version: n8n-0.11.0 Helm Version:"v3.12.3"

The values.yaml that I use: https://pastebin.com/zYNE1CnF

Vad1mo commented 1 year ago

maybe @bartlaarhoven, can help here, as he created the PR https://github.com/8gears/n8n-helm-chart/pull/49.

bartlaarhoven commented 1 year ago

Correct, I ran into the same and created PR #49, which is merged into Chart version 0.12.0. So if you update your chart, it should work.