description | cover | coverY |
---|---|---|
Using Terraform |
../../../.gitbook/assets/GCP and Memphis.jpeg |
0 |
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.
- A GCP Account
- 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
git clone [email protected]:memphisdev/memphis-terraform.git && \
cd memphis-terraform/GCP/GKE
{% hint style="info" %}
In this step, you will need your projectID
.
{% endhint %}
make infra
{% hint style="info" %}
Memphis uses "makefile
" instead of running three terraform commands
{% endhint %}
make cluster
Once deployment is complete, the Memphis Load Balancer URL will be revealed.
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
Destroy Memphis App -
make destroymemphis
{% hint style="info" %} It might take a few minutes for the ALB to be deleted. {% endhint %}
Destroy Memphis GKE Cluster -
make destroyinfra