Best practices for deploying n8n in a Kubernetes cluster using Terraform on GCP
Hi everyone,
I’m working on deploying n8n in a Google Cloud Platform (GCP) environment, using Terraform to provision and manage infrastructure, and running n8n within a Kubernetes cluster (GKE).
I’m looking for best practices or recommended architecture patterns for this setup. Specifically:
- How should I structure the Terraform modules to handle GKE, networking, and n8n configuration?
- What’s the recommended way to handle persistent storage (e.g., for workflows and execution data)?
- Any tips for scaling, security, and upgrades when running n8n in Kubernetes?
- Should I use Helm charts, or is there a better deployment approach?
- Any example configurations or GitHub repositories that demonstrate good practices?
My goal is to have a robust, maintainable, and production-ready setup that can scale with demand.
Any guidance or examples from your experience would be greatly appreciated.
Thanks in advance!
— Michel