GCP Terraform package description
WEKA provides a ready-to-deploy GCP Terraform package you can customize for installing the WEKA cluster on GCP.
The GCP Terraform package contains the following modules:
setup_network: includes vpcs, subnets, peering, firewall, and health check.
service_account: includes the service account used for deployment with all necessary permissions.
deploy_weka: includes the actual WEKA deployment, instance template, cloud functions, workflows, job schedulers, secret manager, buckets, and health check.
shared_vpcs (optional): includes VPC sharing the WEKA deployment network with another hosting project. For example, when deploying a private network.
See the README files in the GCP-Terraform package for more details about the modules and their properties.
GCP Terraform package supported deployment types
The GCP-Terraform package supports the following deployment types:
Public cloud deployments: Require passing the
get.weka.io
token to Terraform for downloading the WEKA release from the public get.weka.io service. The following examples are provided:Public VPC
Public VPC with creating a worker pool
Public VPC with an existing public network
Public VPC with multiple clusters
Public VPC with a shared VPC
Public VPC with an existing worker pool and VPC
Private cloud deployments: Require uploading the WEKA release tar file into the yum repository (instances can download the WEKA release from this yum repository). The following examples are provided:
Private VPC with creating a worker pool
Private VPC with an existing network
Private VPC with an existing worker pool and VPC
Private VPC with multiple clusters
Private VPC with a shared VPC
Terraform variables file
Each deployment type includes a variables file terraform.tfvars
that contains only the variables required for the relevant deployment type. The following is an example of the public VPC variables file. See the README files in the GCP-Terraform package for the other variables files.
tf.tfvars
example: Public VPC
tf.tfvars
example: Public VPCThe following is the content of the terraform.tfvars
file for the public VPC example. As part of the write phase, you customize the values according to your deployment.
Variable descriptions
Private network considerations
To deploy a private network, the parameter private_network = true
on the setup_network
and deploy_weka
modules level.
Depending on the required network topology, the following parameters are optional for private networking:
To download the WEKA release from a local bucket, set the local bucket location in the
install_url
parameter on thedeploy_weka
module level.For Centos7 only, a distributive repository is required to download kernel headers and additional build software. To auto-configure yum to use a distributive repository, run
yum_repo_server
.If a custom image is required, use
weka_image_id
.
Last updated