Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Creating a VM with a GPU
      • Installing NVIDIA drivers
      • NVIDIA driver update guide
      • Enabling MIG on a VM with a GPU
      • Managing maintenance of GPU VMs
        • Creating a GPU cluster
        • Adding a VM to a GPU cluster
        • Updating a GPU cluster
        • Getting GPU cluster info
        • Configuring GPU cluster access permissions
        • Deleting a GPU cluster
        • Testing a GPU cluster physical state
        • Running parallel tasks in a GPU cluster
        • Testing InfiniBand throughput
    • Viewing operations with resources
    • Viewing metrics Monitoring
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Metrics Monitoring
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. GPU
  3. GPU clusters
  4. Creating a GPU cluster

Creating a GPU cluster

Written by
Yandex Cloud
Improved by
Danila N.
Updated at July 31, 2026
View in Markdown

Note

By default, a cloud has a zero quota for creating GPU clusters. To change the quota, contact support.

This section explains how to create a GPU cluster. You can create GPU clusters in the ru-central1-a, ru-central1-b, and ru-central1-d availability zones.

After creating a cluster, you can add VMs from the same availability zone to it.

Management console
CLI
Terraform
API
  1. In the management console, select a folder for the new GPU cluster.

  2. Navigate to Compute Cloud.

  3. In the left-hand panel, select  GPU clusters.

  4. Click Create a cluster.

  5. In the window that opens:

    1. In the Name field, enter a name for the GPU cluster.

      • Length: between 3 and 63 characters.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    2. Optionally, in the Description field, add a description for the GPU cluster.

    3. In the Availability zone field, select an availability zone for the cluster.

    4. Optionally, add labels to the cluster.

  6. Click Create a cluster.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. See the description of the CLI command for creating a GPU cluster:

    yc compute gpu-cluster create --help
    

    Note that currently, you can only create GPU clusters with the infiniband interconnect type.

  2. Create a GPU cluster in the default availability zone:

    yc compute gpu-cluster create --interconnect-type infiniband
    

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

  1. In the Terraform configuration file, describe the resource you want to create:

    provider "yandex" {
      zone = "ru-central1-a"
    }
    
    resource "yandex_compute_gpu_cluster" "default" {
      name               = "<GPU_cluster_name>"
      interconnect_type  = "<interconnect_type>"
      zone               = "ru-central1-a"
      labels             = {
        <label_1_key> = "<label_1_value>"
        <label_2_key> = "<label_2_value>"
      }
    }
    

    Where:

    • name: GPU cluster name. This is a required setting.
    • interconnect_type: Interconnect type. Currently, you can only create GPU clusters with the infiniband interconnect type. This is a required setting.
    • labels: Resource label in <key> = "<value>" format. This is an optional setting.

    For more information about the yandex_compute_gpu_cluster resource properties, see this Terraform provider guide.

  2. Create the resources:

    1. In the terminal, navigate to the configuration file directory.

    2. Make sure the configuration is correct using this command:

      terraform validate
      

      If the configuration is valid, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.

    4. Apply the configuration changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

This will create a GPU cluster in the specified folder. You can check the new GPU cluster and its settings using the management console or this CLI command:

yc compute gpu-cluster get <GPU_cluster_name>

To create a GPU cluster, use the create REST API method for the GpuCluster resource or the GpuClusterService/Create gRPC API call.

Useful linksUseful links

  • Adding a VM to a GPU cluster
  • Updating a GPU cluster
  • Deleting a GPU cluster
  • Graphics processing units (GPUs)
  • Platforms

Was the article helpful?

Previous
Managing maintenance of GPU VMs
Next
Adding a VM to a GPU cluster
© 2026 Direct Cursus Technology L.L.C.