Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Latest commit

 

History

History
25 lines (21 loc) · 1.3 KB

terraform.md

File metadata and controls

25 lines (21 loc) · 1.3 KB

Use Terraform to Setup a Surreal Cluster

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. You can use it to setup the cloud kubernetes cluster easily. Here are the instructions:

Index

Depending on what provider you have, there are different instructions and templates to use. Here are the supported platforms. We welcome contributions if you setup Surreal on another platform.

Google Cloud

Setup credential

You need to go to Google Developers Console and create a service account key (json format) for a Compute Engine default service account. See "Authentication JSON File" section of this guide. Link to the file in google-cloud.tf's credential variable so terraform knows where to find it.

Use terraform to setup a Google Kubernetes Engine cluster

Create a new directory, copy google-cloud.tf to it, do

terraform init
terraform plan

Terraform will tell you what needs to be done to satisfy the specifications. If you are happy with that, do

terraform apply

and confirm. Terraform would setup the kubernetes cluster for you.