n8n is a powerful workflow automation tool that enables users to connect various applications and services through a visual, node-based interface. This guide will walk you through deploying n8n on a Civo Kubernetes cluster using Terraform.
Before proceeding with the deployment, ensure you have the following prerequisites in place:
- Install Git: To start, you need to have Git installed on your system. You can download the latest version of Git from the official Git website. Follow the installation instructions for your operating system:
- For Windows: Run the installer and follow the prompts.
- For macOS (using Homebrew): Run
brew install git
in your terminal. - For Linux: Run
sudo apt-get install git
(for Ubuntu-based distributions) orsudo yum install git
(for RPM-based distributions).
- Install Terraform: Terraform is required for infrastructure provisioning. You can download the latest version of Terraform from the official Terraform website. Follow the installation instructions for your operating system:
- For Windows: Download the binary and add it to your system's PATH.
- For macOS (using Homebrew): Run
brew install terraform
in your terminal. - For Linux: Download the binary and move it to a directory in your system's PATH, such as
/usr/local/bin
.
Once you have git, run git clone https://github.com/civo-learn/civo-n8n.git
.
Before running Terraform, you need to configure your Civo API key:
-
Log in to your Civo account.
-
Navigate to your Profile and locate your API key.
-
In your
terraform/lon2
directory, copy the example variables file:cp terraform.tfvars.example terraform.tfvars
-
Open
terraform.tfvars
and replace the placeholder with your actual Civo API key.
To deploy n8n, navigate to the terraform/lon2
directory and execute the following commands:
terraform init
terraform plan
terraform apply
This will provision the necessary resources and install the n8n application using a Helm chart on your Civo Kubernetes cluster.
Once the deployment is complete, follow these steps to access n8n:
-
Navigate to your Civo Kubernetes cluster in the Civo dashboard.
-
Locate the DNS name of the load balancer created for the deployment.
-
Open your browser and enter the following URL, replacing
<load balancer DNS>
with the actual DNS name:http://<load balancer DNS>:5678
This will take you to the n8n application interface.
For guides on configuring n8n with Relax AI, refer to relax.ai/docs.
For detailed guides on configuring and using n8n, refer to the official n8n documentation.
By following this guide, you have successfully deployed n8n on Civo using Terraform. You can now start automating workflows and integrating applications seamlessly.