Skip to content

Commit 44a0c43

Browse files
Merge pull request #3730 from RachaelSTamakloe/rc-cherry-pick
Cherry-pick PR3709, PR3725, PR3729
2 parents b02eda4 + a575634 commit 44a0c43

File tree

6 files changed

+816
-1
lines changed

6 files changed

+816
-1
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# A4 High Blueprints
2+
3+
This document outlines the deployment steps for provisioning A4 High
4+
`a4-highgpu-8g` VMs that use Slurm
5+
as an orchestrator.
6+
7+
## Deployment Instructions
8+
9+
### Build the Cluster Toolkit gcluster binary
10+
11+
Follow instructions
12+
[here](https://cloud.google.com/cluster-toolkit/docs/setup/configure-environment)
13+
14+
### (Optional, but recommended) Create a GCS Bucket for storing terraform state
15+
16+
```bash
17+
#!/bin/bash
18+
TF_STATE_BUCKET_NAME=<your-bucket>
19+
PROJECT_ID=<your-gcp-project>
20+
REGION=<your-preferred-region>
21+
22+
gcloud storage buckets create gs://${TF_STATE_BUCKET_NAME} \
23+
--project=${PROJECT_ID} \
24+
--default-storage-class=STANDARD --location=${REGION} \
25+
--uniform-bucket-level-access
26+
gcloud storage buckets update gs://${TF_STATE_BUCKET_NAME} --versioning
27+
```
28+
29+
### Create/modify the deployment.yaml file with your preferred configuration
30+
31+
For example, set the such as size, reservation to be used, etc, as well as the
32+
name of the bucket that you just created. Below is an example
33+
34+
```yaml
35+
---
36+
terraform_backend_defaults:
37+
type: gcs
38+
configuration:
39+
bucket: TF_STATE_BUCKET_NAME
40+
41+
vars:
42+
deployment_name: a4h-slurm
43+
project_id: <PROJECT_ID>
44+
region: <REGION>
45+
zone: <ZONE>
46+
a4h_reservation_name: <RESERVATION_NAME>
47+
a4h_cluster_size: <RESERVATION_SIZE>
48+
```
49+
50+
### Deploy the cluster
51+
52+
```bash
53+
#!/bin/bash
54+
gcluster deploy -d a4high-slurm-deployment.yaml a4high-slurm-blueprint.yaml
55+
```

0 commit comments

Comments
 (0)