Deploys n8n to a Kubernetes cluster using Terraform. Exposes the endpoint using Cloudflare Tunnels.
- CloudFlare account
- Tunnel created using
cloudflared tunnel create n8n
- Credentials file saved to the project root
- Credentials file name provided as a Terraform variable
- Domain name set up for the tunnel
cloudflared tunnel route dns tunnelId domainName
- Domain name provided as a Terraform variable
- Tunnel created using
- Kubernetes cluster set up
- Terraform installed
- Correct
kubeconfig
location in provider.tf
- Use
terraform apply
to deploy andterraform destroy
to delete the resources.