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

Add ability to override command for main container #40

Closed tomaszkiewicz closed 1 year ago

tomaszkiewicz commented 1 year ago

This simple change adds ability to override entrypoint for the container.


Story behind the change: (if someone is interested or have similar issue)

I encountered strange issue while using volumes based on NFS as a storage for n8n and n8n was unable to execute entrypoint script due to immutable .snapshot directory on the mounted filesystem, so the only way to temporary hack it was to override entrypoint with my own version that does chown optionally and runs as root:

          command:
            - tini
            - --
            - /bin/sh
            - -c
            - chmod o+rx /root; chown -R node /root/.n8n || true; chown -R node /root/.n8n; ln -s /root/.n8n /home/node; chown -R node /home/node || true; node /usr/local/bin/n8n
tomaszkiewicz commented 1 year ago

For some strange reason GH doesn't see new commit and doesn't allow me to open another PR for the same branch... but I also got error that they're under heavy load, so let's wait and see if the commit will show up soon.

Vad1mo commented 1 year ago

@tomaszkiewicz ping