Deploy on GCP
Using Terraform
Introduction
Google Cloud Platform is one of the world's three most popular cloud providers. It offers a high-performance infrastructure for cloud computing, data analytics & machine learning. Secure, reliable, and high-performance cloud services.
At the moment, memphis utilizing Terraform to automate the entire deployment process from VPC creation, to K8S, to memphis deployment.
Terraform codifies cloud APIs into declarative configuration files.
Prerequisites
A GCP Project + GCP Service Account Key
gcloud SDK + CLI installed, configuration depends on station OS.
Authorize the SDK to access GCP using your user account credentials
gcloud auth application-default login
Enable API services:
gcloud config set project YOUR_PROJECT_ID
gcloud services enable compute.googleapis.com container.googleapis.com
Adjust the "N2_CPUS" quota according to your region. (Default is 8, increase to at least 12)
Terraform is installed
Kubectl is installed
helm is installed
Terraform Installation Flow

Step 0: Clone Memphis-Terraform repo
git clone [email protected]:memphisdev/memphis-terraform.git && \
cd memphis-terraform/GCP/GKE
Step 1: Deploy GKE Cluster using Terraform
make infra
Step 2: Deploy Memphis
make cluster
Once deployment is complete, the Memphis Load Balancer URL will be revealed.
Step 3: Login to Memphis
Display memphis load balancer public IP by running the following -
kubectl get svc -n memphis
The UI will be available through https://<Public IP>:9000
Appendix A: Clean (Remove) Memphis Terraform deployment
Destroy Memphis App -
make destroymemphis
Destroy Memphis GKE Cluster -
make destroyinfra
Last updated
Was this helpful?