> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interconnecting GPUs in Managed Service for Kubernetes® clusters using InfiniBand™

To accelerate ML, AI and high-performance computing (HPC) workloads that you run in your [Managed Service for Kubernetes clusters with GPUs](./set-up), you can interconnect the GPUs using [InfiniBand](https://www.infinibandta.org/about-infiniband/), a high-throughput, low-latency networking standard. For more details about InfiniBand in Nebius AI Cloud, see the [Compute documentation](../../compute/clusters/gpu).

In this article, you will learn how to set up InfiniBand in a Managed Kubernetes cluster.

## How to enable InfiniBand for a node group

<Tabs>
  <Tab title="Web console">
    In the node group creation form (<Icon icon="https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/compute.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=b91340217b08a1456d88ae0347f281d1" width="16" height="16" data-path="_assets/sidebar/compute.svg" /> **Compute** → **Kubernetes** → your cluster → **Node groups** → **Create node group**), under **Computing resources**:

    1. Select **With GPU**.

    2. Select a platform and a preset compatible with GPU clusters. The compatible platforms and presets:

       | Platform                                                                | Presets               | [Regions](/overview/regions)                                                                                             |
       | ----------------------------------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------ |
       | NVIDIA® B300 NVLink with Intel Granite Rapids  <br />(`gpu-b300-sxm`)   | `8gpu-192vcpu-2768gb` | `uk-south1`*<Tooltip href="/overview/regions" cta="Private region">\*</Tooltip>*                                         |
       | NVIDIA® B200 NVLink with Intel Emerald Rapids  <br />(`gpu-b200-sxm`)   | `8gpu-160vcpu-1792gb` | `us-central1`                                                                                                            |
       | NVIDIA® B200 NVLink with Intel Emerald Rapids  <br />(`gpu-b200-sxm-a`) | `8gpu-160vcpu-1792gb` | `me-west1`                                                                                                               |
       | NVIDIA® H200 NVLink with Intel Sapphire Rapids  <br />(`gpu-h200-sxm`)  | `8gpu-128vcpu-1600gb` | `eu-north1`, `eu-north2`*<Tooltip href="/overview/regions" cta="Private region">\*</Tooltip>*, `eu-west1`, `us-central1` |
       | NVIDIA® H100 NVLink with Intel Sapphire Rapids  <br />(`gpu-h100-sxm`)  | `8gpu-128vcpu-1600gb` | `eu-north1`                                                                                                              |

    3. Select a GPU cluster or create one. If the field is inactive, make sure you have selected a compatible platform and preset.

    4. Under **GPU settings**,  keep the **Install NVIDIA GPU drivers and other components** option enabled.

       If you want to [install the drivers manually](./set-up#how-to-install-the-drivers-and-components-on-existing-node-groups), disable this option.
  </Tab>

  <Tab title="CLI">
    1. Depending on your project’s [region](../../overview/regions), select an [InfiniBand fabric](../../compute/clusters/gpu#infiniband-fabrics) and save it to an environment variable:

       ```bash theme={null}
       export INFINIBAND_FABRIC=<fabric>
       ```

    2. Create a GPU cluster and save its ID:

       ```bash theme={null}
       export NB_GPU_CLUSTER_ID=$(nebius compute gpu-cluster create \
         --name gpu-cluster-name \
         --infiniband-fabric $INFINIBAND_FABRIC \
         --format json \
         | jq -r ".metadata.id")
       ```

    3. [Create a node group](../node-groups/manage) with GPUs and specify the GPU cluster ID in its parameters by using the [nebius mk8s node-group create](/cli/reference/mk8s/node-group/create) command:

       ```bash theme={null}
       nebius mk8s node-group create \
         --template-resources-platform gpu-h100-sxm \
         --template-resources-preset 8gpu-128vcpu-1600gb \
         --template-gpu-cluster-id $NB_GPU_CLUSTER_ID \
         --template-gpu-settings-drivers-preset cuda12 \
         ...
       ```

       * In `--template.gpu-cluster-id`, specify the GPU cluster ID.

       * In `--template-resources-platform`, specify a platform with GPUs. In `--template-resources-preset`, specify a compatible preset (number of GPUs and vCPUs, RAM size). The compatible platforms and presets are:

         | Platform                                                                | Presets               | [Regions](/overview/regions)                                                                                             |
         | ----------------------------------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------ |
         | NVIDIA® B300 NVLink with Intel Granite Rapids  <br />(`gpu-b300-sxm`)   | `8gpu-192vcpu-2768gb` | `uk-south1`*<Tooltip href="/overview/regions" cta="Private region">\*</Tooltip>*                                         |
         | NVIDIA® B200 NVLink with Intel Emerald Rapids  <br />(`gpu-b200-sxm`)   | `8gpu-160vcpu-1792gb` | `us-central1`                                                                                                            |
         | NVIDIA® B200 NVLink with Intel Emerald Rapids  <br />(`gpu-b200-sxm-a`) | `8gpu-160vcpu-1792gb` | `me-west1`                                                                                                               |
         | NVIDIA® H200 NVLink with Intel Sapphire Rapids  <br />(`gpu-h200-sxm`)  | `8gpu-128vcpu-1600gb` | `eu-north1`, `eu-north2`*<Tooltip href="/overview/regions" cta="Private region">\*</Tooltip>*, `eu-west1`, `us-central1` |
         | NVIDIA® H100 NVLink with Intel Sapphire Rapids  <br />(`gpu-h100-sxm`)  | `8gpu-128vcpu-1600gb` | `eu-north1`                                                                                                              |

       * In `--template-gpu-settings-drivers-preset`, specify a supported preset to use a boot disk image that contains drivers and other components for GPUs. For more details, see [GPU drivers and other components](/kubernetes/gpu/set-up.md#gpu-drivers-and-other-components).

         If you want to [install the drivers manually](/kubernetes/gpu/set-up#drivers-install), omit the `--template-gpu-settings-drivers-preset` parameter.
  </Tab>
</Tabs>

## Example: NCCL tests

To test InfiniBand performance in a Managed Service for Kubernetes cluster, you can run the NVIDIA NCCL test in it. For instructions, see our [tutorial](./nccl-test).

## See also

* [Working with GPUs in a Managed Kubernetes cluster](./set-up)
* [Creating and modifying node groups](../node-groups/manage)

***

*InfiniBand and InfiniBand Trade Association are registered trademarks of the InfiniBand Trade Association.*
