This module creates a reslient and fault tolerant Ctrlplane installation using Google Kubernetes Engine (GKE) as the computing environment and the following services for storing data:
- CloudSQL for PostgreSQL
- Memorystore for Redis
- Cloud Storage
This module is meant for use with Terraform 1.0+ and tested using Terraform 1.6.
There are examples included in the examples folder but simple usage is as follows:
module "ctrlplane" {
source = "ctrlplanedev/ctrlplane/google"
namespace = "ctrlplane"
domains = ["<fqdn>"]
}
Then perform the following commands on the root folder:
terraform init
to get the pluginsterraform plan
to see the infrastructure planterraform apply
to apply the infrastructure buildterraform destroy
to destroy the built infrastructure
Terraform
Be sure you have the correct Terraform version, you can choose the binary here:
The project has the following folders and files:
/
: root folder/examples
: examples for using this module/helpers
: Helper scripts/test
: Folders with files for testing the module (see Testing section on this file)/main.tf
: main file for this module, contains all the resources to create/variables.tf
: all the variables for the module/output.tf
: the outputs of the module/README.md
: this file