Before you can deploy your first cluster on Gemini Enterprise Agent Platform training clusters, you must configure your Google Cloud project and environment. This guide covers all the necessary prerequisites, which fall into three main categories:
Project Access: Gaining access to the service, which is by invitation only.
Resource Configuration: Enabling APIs and setting up the required VPC network and storage services.
User Permissions: Granting the necessary IAM roles for cluster management and resource access.
Completing these steps prepares your project for a successful deployment.
Prerequisites
To use training clusters, you must:
- Allowlist your project by contacting your sales representative for access.
- Obtain capacity for GPU clusters in supported regions.
- Enable the necessary APIs, including the Compute Engine, Filestore, Cloud Storage, Managed Lustre (optional), Hypercomputer Configuration Service, and Agent Platform APIs.
- Configure networking by ensuring an existing network meets specific conditions (for example, Google Private Access, firewall rules) or by creating a new VPC network and subnetwork.
- Configure storage by creating a zonal or regional Filestore
instance to serve as the
/homedirectory and optionally configuring a Google Cloud managed Lustre instance. - Grant IAM permissions to users for cluster management, storage access and SSH access to cluster nodes, as described in the IAM permissions section.
Supported regions
Accelerator availability varies by region and zone. To check which accelerators are available in each location, see Using accelerators.
us-central1us-east1us-east4us-east5us-south1us-west1us-west4asia-southeast1europe-west1europe-west4europe-north1asia-south2me-central1
IAM permissions
- Grant the
roles/aiplatform.adminrole to users who will manage your training clusters. - Grant the
roles/aiplatform.viewerrole to users who only need to view clusters and their configurations. Grant the following IAM roles to the user or service account that manages (creates, deletes, and updates) clusters:
Role Name Role ID Compute Instance Admin (v1) roles/compute.instanceAdmin.v1Logs Writer roles/logging.logWriterMonitoring Metric Writer roles/monitoring.metricWriterService Account User roles/iam.serviceAccountUserService Networking Admin roles/servicenetworking.networksAdminFor SSH access to the Slurm login nodes, grant the following permissions:
Permissions Descriptions Purpose Compute OS Login Sign in to a VM as a standard (non-administrator) user. If sudois needed then use Compute OS Admin Login instead.SSH to the deployed login node IAP-secured Tunnel User Access Tunnel resources which use Identity-Aware Proxy. SSH to the deployed login node
Required roles for cluster service accounts
If you leave runtime_spec.service_account unset when creating a cluster,
Gemini Enterprise Agent Platform training clusters attaches the
Compute Engine default service account
to the cluster nodes. That account might hold project-wide roles such as
roles/editor, which lets any user or job running on the cluster modify other
project resources.
Follow the principle of least privilege by creating and attaching a dedicated user-managed service account in the same project as the cluster with only the minimum required roles. If cluster nodes fail to initialize with a custom service account on a previously onboarded project, contact your account team to update your project's service account allowlist. Grant the following IAM roles to the service account attached to your cluster nodes:
| Role Name | Role ID | Purpose |
|---|---|---|
| Logs Writer | roles/logging.logWriter |
Required. Writes cluster and workload logs. |
| Monitoring Metric Writer | roles/monitoring.metricWriter |
Required. Writes cluster and node metrics. |
| Storage Object User | roles/storage.objectUser |
Optional. Grant on the specific Cloud Storage buckets the cluster uses rather than on the project. Lets nodes read from and write to those buckets using Cloud Storage FUSE. |
| Artifact Registry Reader | roles/artifactregistry.reader |
Optional. Grant on the specific Artifact Registry repositories the cluster pulls from rather than on the project. Lets nodes pull container images from those repositories. |
Grant the Service Account User role (roles/iam.serviceAccountUser) on the
cluster's service account to users who create or update clusters, or connect to
login nodes.
You can't change runtime_spec.service_account after cluster creation. To move
an existing cluster off an over-privileged service account, create a new cluster
with a dedicated user-managed service account in the same project and delete the
existing cluster.
If you can't recreate the cluster, you can reduce the roles granted to its attached service account in place:
- Grant the minimum required roles from the preceding table to the cluster's attached service account.
- Review IAM role recommendations and audit other workloads in the project that use the same service account to ensure they don't rely on broader permissions.
- Revoke overly broad roles such as
roles/editorfrom the service account.
Enable APIs
Enable the Compute Engine API:
gcloud services enable compute.googleapis.comEnable the service networking since Filestore must be deployed before creating the cluster.
gcloud services enable servicenetworking.googleapis.comEnable the Cloud Storage API:
gcloud services enable storage.googleapis.comEnable the Lustre API (if using Lustre):
gcloud services enable lustre.googleapis.comEnable the HCS API:
gcloud services enable hypercomputecluster.googleapis.comEnable the Gemini Enterprise API:
gcloud services enable aiplatform.googleapis.comEnable the Cloud Resource Manager API:
gcloud services enable cloudresourcemanager.googleapis.com
What's next
For a detailed guide on creating a training cluster and running your AI/ML workloads, contact your sales representative.