The fluid-hpc_terraform Github repository provides modules for creating and maintaining fluid-slurm-gcp deployments with HashiCorp’s Terraform. The easiest method to get started with Terraform on Google Cloud is to use terraform within your Cloud Shell.
The fluid-slurm-gcp terraform module provides an API that you can use to customize the deployment of your cluster. Notably, you can configure your controller, login, and compute partition machines and set the images you would like to use to deploy your cluster. The login, controller, and compute instances in a fluid-slurm-gcp deployment each have their own image setting. For the latest supported version of fluid-slurm-gcp we recommend using one of the following image groupings
Controller : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-controller-centos-v2-6
Login : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-login-centos-v2-6
Compute : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-compute-centos-v2-6
Controller : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-controller-ubuntu-v2-5-0
Login : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-login-ubuntu-v2-5-0
Compute : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-compute-ubuntu-v2-5-0
Controller : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-controller-ohpc-v2-5-0
Login : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-login-ohpc-v2-5-0
Compute : projects/fluid-cluster-ops/global/images/fluid-slurm-gcp-compute-ohpc-v2-5-0
We recommend that you create your deployment by starting from any of the available example deployments. Each example subdirectory provides a README that describes the resources that are created.
Managing Resources With Terraform
Recommended Reading : https://cloud.google.com/solutions/managing-infrastructure-as-code
For organizations looking to maintain their cluster resources long term, we recommend that you version control your organization’s Terraform scripts in a Git repository, either through Google Source Repositories, Github, or Bitbucket. Additionally, you can couple your repository with Google Cloud Build to help automate the creation of terraform plans and the execution of terraform apply.