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:
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
- Amazon AWS (TODO)
- Microsoft Azure (TODO)
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.
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.