This Terraform module is derived from the open-source deployment-manager samples repository from Google Cloud. Fluid Numerics has updated the startup-script to pass certain variables through instance metadata.
To use this Lustre on Google Cloud, you need to first create a Virtual Machine Image that has Lustre, E2FS, and HSM installed (along with their dependencies). This is done using Google Cloud Build, Packer, and an install script provided for you under the img/
subdirectory. To bake the VM image on Google Cloud, make sure that you enable Google Cloud Build and Google Compute Engine. Additionally, you will need to provide the Google Cloud Build service account the Compute Admin
and Service Account User
IAM roles.
Then, you can create the VM image using the following command :
gcloud builds submit . --config=img/cloudbuild.yaml
After the image has been created, you can quickly create a Lustre cluster using the following commands from the root directory of this repository :
make plan
make apply