Hey everyone, I’ve decided to migrate my container-based n8n setup to a Kubernetes environment. While working on this transition, I encountered some confusion regarding storage components.
In my Docker setup, I used Docker volumes for persistent storage. However, in Kubernetes, we plan to integrate storage with RDS. My question is—do we still need a Persistent Volume (PV) for handling the storage part in this case?
What is the error message (if any)?
NA
Please share your workflow
NA
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
PV is only needed for the encryption key (can also be set in ENV variables)
if using SQLite PV is also needed.
And for installing custom nodes is also on the PV, but with the correct ENV variable missing nodes are automatically installed.
Long answer short, you do not need it if you use the correct ENV variables.
Only if you use external NPM packages in code nodes for example you would need PV to make sure this keeps working.
Hi, which pod restarts? N8N? as long as everything points to the postgresql RDS server and the encryption key and other env variables are set, i don’t see how it can loose it’s data.
Hi, you need a PV for postgres since it stores all of the data. In addition you need to make sure that you feed in the encryption key via an external env variables since all the credentials are encrypted/decrypted with it.
Reg,
J.
So, please detail: flushing out credentials:
They disappear from the UI on the credentials tab?
Are they still in the DB when they disappear?
Can you export through the cli when you are having this issue (encrypted/decrypted)
If you have an encryption key set can you dump it inside to verify it’s actually the right one.
You didn’t actually answer my question of encryption key with “all necessary env variables are set”. As one N8N instance and postgresql server can work without encryption key.