Manage custom accelerator network profiles

Custom accelerator network profiles in Google Kubernetes Engine (GKE) let you define and reuse dedicated Virtual Private Cloud (VPC) configurations for GPU, Cloud TPU, and RDMA-enabled storage-optimized nodes. Instead of manually creating multiple VPC networks, subnetworks, and IP address ranges for every node pool, you create an AcceleratorNetworkProfile resource and attach one or more node pools or ComputeClasses to that profile.

When you attach node pools to an AcceleratorNetworkProfile resource, GKE connects the network interfaces of every node VM in those node pools to the same set of subnetworks. You can also create multiple profiles for the same machine type to isolate traffic between separate training, inference, or high performance computing (HPC) workloads. If you need a single default network setup per machine type without custom parameters, use the auto profile instead. For instructions, see Configure automated networking for accelerator VMs.

This document is for cloud architects, networking specialists, and platform admins and operators who design and manage multi-NIC accelerator networks in GKE. To learn more about common roles and example tasks in Google Cloud content, see Common GKE user roles and tasks.

When to use custom accelerator network profiles

The following table compares the differences between a custom accelerator network profile (described in this document) and the default auto profile. You can choose between these two profiles according to your network isolation and infrastructure requirements.

Capability Default auto profile Custom AcceleratorNetworkProfile resource
Profiles per machine type GKE generates one profile per machine type and zone in each cluster You create multiple named profiles per machine type to isolate workloads
MRDMA VPC network GKE creates local MRDMA VPC networks GKE creates local MRDMA VPC networks, or you supply an existing Compute Engine VPC network
Compute Engine network profile GKE applies the default profile for the machine type GKE applies the default profile, or you specify a custom RDMA network profile
Subnetwork IP sizing GKE allocates a fixed default capacity (up to 65,536 nodes) You set the node capacity by using --max-node-count
Regional clusters GKE manages profiles automatically per node pool zone You create a regional resource and, for RDMA machine types, specify a zone by using --rdma-locations

If the default auto profile meets your requirements, follow the instructions in Configure automated networking for accelerator VMs.

Requirements and limitations

Before you create a custom accelerator network profile, review the cluster requirements, resource constraints, and naming rules.

Requirements

To use custom accelerator network profiles, your environment must meet the following requirements:

  • Your cluster must run GKE version 1.36.0-gke.4550000 or later in Standard or Autopilot mode.
  • Your cluster must use GKE Dataplane V2.
  • You must configure a supported accelerator-optimized or storage-optimized machine type. For supported machine types and per-machine NIC configurations, see Machine network configurations. Bare-metal RDMA machine types such as A4X Max (a4x-maxgpu-4g-metal) require an existing MRDMA VPC network that you create with a roce-metal Compute Engine network profile.
  • Every node pool that references an AcceleratorNetworkProfile resource must run in a single Compute Engine zone. On regional clusters, specify a single zone in --node-locations. For RDMA machine types, that zone must match the profile's --rdma-locations value.
  • The node pool's --machine-type value must match the profile's --auto-config-machine-type value, and the profile's lifecycleState field must be in the ACTIVE state before you attach a node pool.

Limitations

Custom accelerator network profiles have the following limitations:

  • You can't update an AcceleratorNetworkProfile resource after you create it, and you can't change or remove the --accelerator-network-profile flag on an existing node pool. To change network settings, create a new profile and a new node pool.
  • You can't use custom accelerator network profiles in a Shared VPC cluster. Any existing MRDMA VPC network or Compute Engine network profile that you reference must reside in the same Google Cloud project as the cluster.
  • You can't combine the --accelerator-network-profile flag with the --additional-node-network flag on the same node pool, and you can't combine the multi-network API with GKE managed DRANET on the same node pool.
  • GKE sets the MTU based on the machine type, such as 8896 for RDMA machine types. You can't customize the MTU on VPC networks that GKE creates.
  • For RDMA machine types on regional clusters, --rdma-locations accepts a single zone. If your workload spans multiple zones, create a separate profile for each zone.

Naming rules

When you name an AcceleratorNetworkProfile resource, follow these rules:

  • Use 1 to 63 characters containing only lowercase letters (a-z), numbers (0-9), and hyphens (-).
  • Start the name with a lowercase letter and end it with a lowercase letter or number.
  • Don't use auto or names starting with auto-, which select the default profile, or the autoanp- prefix. GKE reserves the autoanp- prefix for profiles that it generates automatically.
  • Use a unique name within the profile's location, which matches the cluster's zone or region, across all clusters in the project.

Before you begin

Before you start, make sure that you have performed the following tasks:

  • Enable the Google Kubernetes Engine API.
  • Enable Google Kubernetes Engine API
  • To use the Google Cloud CLI for this task, install and then initialize the gcloud CLI. If you previously installed the gcloud CLI, get the latest version by running the gcloud components update command. Earlier gcloud CLI versions might not support running the commands in this document.
  • Ensure that you have an existing GKE cluster that runs version 1.36.0-gke.4550000 or later and uses GKE Dataplane V2. If you need to create a cluster, run the following command:

    gcloud container clusters create CLUSTER_NAME \
        --location=LOCATION \
        --cluster-version=1.36.0-gke.4550000 \
        --enable-dataplane-v2
    

    Replace the following:

    • CLUSTER_NAME: the name of your cluster.
    • LOCATION: the Compute Engine region or zone for the cluster, such as us-central1 or us-central1-c.
  • If you plan to deploy GPU or Z4M workloads that use RDMA with GKE managed DRANET, verify that your cluster includes the required DeviceClass resources (mrdma.google.com for GPUs or irdma.google.com for Z4M):

    kubectl get deviceclass mrdma.google.com
    

Required roles

To get the permissions that you need to manage custom accelerator network profiles, ask your administrator to grant you the following IAM roles on your Google Cloud project:

For more information about granting roles, see Manage access to projects, folders, and organizations.

These predefined roles contain the permissions required to manage custom accelerator network profiles. To see the exact permissions that are required, expand the Required permissions section:

Required permissions

The following permissions are required to manage custom accelerator network profiles:

  • Create a profile:
    • container.acceleratorNetworkProfiles.create
    • container.clusters.get
  • View or list profiles:
    • container.acceleratorNetworkProfiles.get
    • container.acceleratorNetworkProfiles.list
  • Use an existing MRDMA VPC network:
    • compute.networks.use
    • compute.networks.list
  • Attach a profile to a node pool: container.clusters.update
  • Delete a profile:
    • container.acceleratorNetworkProfiles.delete
    • container.clusters.get

You might also be able to get these permissions with custom roles or other predefined roles.

Also verify that the GKE service agent in your project has the default Kubernetes Engine Service Agent (roles/container.serviceAgent) IAM role so that GKE can provision VPC networks, subnetworks, and IP address ranges.

Create a custom accelerator network profile

When you create an AcceleratorNetworkProfile resource, the --location value must match your cluster's location: specify the zone for a zonal cluster or the region for a regional cluster. Choose the procedure that matches your machine type and MRDMA network design.

Create a profile with managed MRDMA networks

For VM-based MRDMA GPU machine types (a3-ultragpu-8g, a4-highgpu-8g, and a4x-highgpu-4g), GKE can create and manage local, non-shareable MRDMA VPC networks and subnetworks for your profile.

gcloud

To create a profile in a zonal cluster where GKE creates and manages the MRDMA networks, run the following command:

gcloud beta container accelerator-network-profiles create PROFILE_NAME \
    --location=ZONE \
    --cluster=CLUSTER_NAME \
    --auto-config-machine-type=MACHINE_TYPE \
    --auto-create-local-mrdma-vpc

If your cluster is a regional cluster, set --location to the cluster's region and add --rdma-locations to pin the physical RDMA fabric to a single zone within that region:

gcloud beta container accelerator-network-profiles create PROFILE_NAME \
    --location=REGION \
    --rdma-locations=ZONE \
    --cluster=CLUSTER_NAME \
    --auto-config-machine-type=MACHINE_TYPE \
    --auto-create-local-mrdma-vpc

Replace the following:

  • PROFILE_NAME: a unique name for the profile that follows the naming rules, such as training-a4-profile-1.
  • ZONE: the Compute Engine zone for the zonal cluster or for the regional profile's RDMA fabric, such as us-central1-c.
  • REGION: the Compute Engine region of your regional cluster, such as us-central1.
  • CLUSTER_NAME: the name of your cluster.
  • MACHINE_TYPE: an MRDMA machine type that GKE supports, such as a4-highgpu-8g or a3-ultragpu-8g.

You can also append any of the following optional flags:

  • --max-node-count: an integer from 1 to 1048576 that sizes the subnetworks that GKE creates for the maximum number of nodes in this profile, such as 64. If you omit this flag, GKE sizes subnetworks for up to 65,536 nodes, such as a /16 CIDR block.
  • --auto-config-mrdma-network-profile: the name or URL of a same-project Compute Engine network profile to apply to the MRDMA VPC networks that GKE creates.
  • --auto-config-host-nic-in-same-vpc: places secondary host (Titanium) NICs in the same VPC network as the default node NIC on machine types that support shared host VPC placement.
  • --description: a human-readable description up to 256 characters.
  • --labels or --annotations: comma-separated KEY=VALUE pairs for organizing and attaching metadata to the profile at creation.

REST

To create a profile by using the Kubernetes Engine API, send a POST request to the projects.locations.acceleratorNetworkProfiles.create method:

POST https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/acceleratorNetworkProfiles?acceleratorNetworkProfileId=PROFILE_NAME

{
  "cluster": "CLUSTER_NAME",
  "rdmaLocations": [
    "ZONE"
  ],
  "description": "DESCRIPTION",
  "autoConfig": {
    "machineType": "MACHINE_TYPE",
    "autoCreateLocalMrdmaNetwork": true
  }
}

Replace the following:

  • PROJECT_ID: your Google Cloud project ID.
  • LOCATION: the cluster's region or zone. For a zonal cluster, omit the rdmaLocations field from the request body because it defaults to the request's zone.
  • PROFILE_NAME: a unique ID for the profile that follows the naming rules.
  • CLUSTER_NAME: the name of your cluster.
  • ZONE: the single zone in LOCATION where GKE provisions the regional profile's RDMA network fabric.
  • DESCRIPTION: a description up to 256 characters.
  • MACHINE_TYPE: the MRDMA machine type, such as a4-highgpu-8g.

To customize subnetwork IP sizing, you can also include the optional maxNodeCount field with an integer from 1 to 1048576.

The request returns a long-running Operation resource while GKE provisions the networks and subnetworks.

Create a profile with an existing MRDMA network

If you already manage an RDMA-enabled Compute Engine VPC network in the same project, pass that VPC network when you create the profile. GKE attaches all MRDMA NICs to your existing VPC network and automatically creates and sizes the required subnetworks. Bare-metal RDMA machine types (a4x-maxgpu-4g-metal) require an existing MRDMA VPC network that uses a ZONE-vpc-roce-metal RDMA network profile.

Don't combine --auto-config-mrdma-vpc (or mrdmaNetwork in REST) with --auto-create-local-mrdma-vpc or --auto-config-mrdma-network-profile.

gcloud

To create a profile that uses an existing MRDMA VPC network, run the following command:

gcloud beta container accelerator-network-profiles create PROFILE_NAME \
    --location=REGION \
    --rdma-locations=ZONE \
    --cluster=CLUSTER_NAME \
    --auto-config-machine-type=MACHINE_TYPE \
    --auto-config-mrdma-vpc=MRDMA_VPC_NAME

If your cluster is a zonal cluster, set --location to the cluster's zone and omit --rdma-locations.

Replace the following:

  • PROFILE_NAME: a unique name for the profile that follows the naming rules.
  • REGION: the region of your regional cluster.
  • ZONE: the zone for the RDMA fabric. This zone must match the zone of your MRDMA VPC network's RDMA network profile.
  • CLUSTER_NAME: the name of your cluster.
  • MACHINE_TYPE: the MRDMA machine type, such as a4-highgpu-8g or a4x-maxgpu-4g-metal.
  • MRDMA_VPC_NAME: the name of an existing MRDMA VPC network in the same project.

REST

Send a POST request and set autoConfig.mrdmaNetwork to your existing MRDMA VPC network:

POST https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/acceleratorNetworkProfiles?acceleratorNetworkProfileId=PROFILE_NAME

{
  "cluster": "CLUSTER_NAME",
  "rdmaLocations": [
    "ZONE"
  ],
  "autoConfig": {
    "machineType": "MACHINE_TYPE",
    "mrdmaNetwork": "MRDMA_VPC_NAME"
  }
}

Replace the following:

  • PROJECT_ID: your Google Cloud project ID.
  • LOCATION: the cluster's region or zone. For a zonal cluster, omit the rdmaLocations field from the request body.
  • PROFILE_NAME: a unique ID for the profile that follows the naming rules.
  • CLUSTER_NAME: the name of your cluster.
  • ZONE: the zone for the regional profile's RDMA fabric.
  • MACHINE_TYPE: the MRDMA machine type, such as a4-highgpu-8g or a4x-maxgpu-4g-metal.
  • MRDMA_VPC_NAME: the name of an existing MRDMA VPC network in the same project.

Create a profile for non-MRDMA machine types

For machine types that don't use MRDMA NICs, omit all MRDMA flags (--auto-create-local-mrdma-vpc, --auto-config-mrdma-vpc, and --auto-config-mrdma-network-profile):

  • Non-RDMA GPU and Cloud TPU machine types (a3-highgpu-8g, a3-megagpu-8g, ct6e-standard-*, and tpu7x-standard-4t): also omit --rdma-locations. On regional clusters, single-zone node pools or TPU slice node pools in any zone of the region can use a regional non-RDMA profile.
  • Z4M storage-optimized machine types (z4m-highmem-192): Z4M uses IRDMA rather than MRDMA. Omit the MRDMA flags, and include --rdma-locations when you create the profile on a regional cluster.

gcloud

To create a profile for a non-RDMA GPU or Cloud TPU machine type, run the following command:

gcloud beta container accelerator-network-profiles create PROFILE_NAME \
    --location=LOCATION \
    --cluster=CLUSTER_NAME \
    --auto-config-machine-type=MACHINE_TYPE

Replace the following:

  • PROFILE_NAME: a unique name for the profile that follows the naming rules.
  • LOCATION: the cluster's region or zone.
  • CLUSTER_NAME: the name of your cluster.
  • MACHINE_TYPE: a non-RDMA machine type, such as a3-megagpu-8g or ct6e-standard-4t.

REST

Send a POST request with only machineType in autoConfig:

POST https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/acceleratorNetworkProfiles?acceleratorNetworkProfileId=PROFILE_NAME

{
  "cluster": "CLUSTER_NAME",
  "autoConfig": {
    "machineType": "MACHINE_TYPE"
  }
}

Replace the following:

  • PROJECT_ID: your Google Cloud project ID.
  • LOCATION: the cluster's region or zone.
  • PROFILE_NAME: a unique ID for the profile that follows the naming rules.
  • CLUSTER_NAME: the name of your cluster.
  • MACHINE_TYPE: a non-RDMA machine type, such as a3-megagpu-8g or ct6e-standard-4t.

View and list accelerator network profiles

Before you attach a node pool to a custom profile, verify that the profile's lifecycleState is ACTIVE. You can also inspect the NIC, VPC, subnetwork, and Network Connectivity InternalRange resources that GKE provisions, or list all profiles in a location.

Check profile status and network configuration

gcloud

To inspect an AcceleratorNetworkProfile resource, run the following command:

gcloud beta container accelerator-network-profiles describe PROFILE_NAME \
    --location=LOCATION

Replace the following:

  • PROFILE_NAME: the name of the profile.
  • LOCATION: the cluster's zone (for zonal clusters) or region (for regional clusters).

REST

Send a GET request to the projects.locations.acceleratorNetworkProfiles.get method:

GET https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/acceleratorNetworkProfiles/PROFILE_NAME

Replace the following:

  • PROJECT_ID: your Google Cloud project ID.
  • LOCATION: the cluster's zone or region.
  • PROFILE_NAME: the ID of the profile.

The output includes the lifecycleState (CREATING, ACTIVE, DELETING, or FAILED), any errorMessage if provisioning failed, and the output-only nicConfigs array describing each NIC's type (GVNIC, IRDMA, MRDMA, or IDPF), mtu, network, subnetwork, networkProfile, internalRange, and stackType.

List profiles in a location

gcloud

To list all accelerator network profiles in a region or zone, run the following command:

gcloud beta container accelerator-network-profiles list \
    --location=LOCATION

Replace LOCATION with the Compute Engine region or zone.

REST

Send a GET request to the projects.locations.acceleratorNetworkProfiles.list method:

GET https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/acceleratorNetworkProfiles

Replace PROJECT_ID with your Google Cloud project ID and LOCATION with the region or zone.

Attach a custom profile to nodes

After your profile reaches the ACTIVE state, you can attach it to node pools that you create or reference the profile in a ComputeClass custom resource for Autopilot and node auto-provisioning workloads.

Create a node pool with a custom profile

You can attach one or more single-zone node pools to the same AcceleratorNetworkProfile resource so that all nodes across those node pools share the same accelerator subnetworks.

gcloud

To create a node pool that uses your custom profile, run the gcloud container node-pools create command:

gcloud container node-pools create NODE_POOL_NAME \
    --cluster=CLUSTER_NAME \
    --location=LOCATION \
    --node-locations=ZONE \
    --machine-type=MACHINE_TYPE \
    --accelerator-network-profile=PROFILE_NAME

Replace the following:

  • NODE_POOL_NAME: the name of your new node pool.
  • CLUSTER_NAME: the name of your cluster.
  • LOCATION: the cluster's region or zone.
  • ZONE: the single Compute Engine zone for the nodes. For RDMA profiles, this zone must match the profile's --rdma-locations zone. On zonal clusters, you can omit --node-locations.
  • MACHINE_TYPE: the machine type matching the profile's --auto-config-machine-type value.
  • PROFILE_NAME: the name of your ACTIVE AcceleratorNetworkProfile resource.

For multi-host TPU slice node pools, also include the --tpu-topology flag. For additional accelerator flags such as --reservation, see Run GPUs in GKE Standard node pools and Deploy TPU workloads in GKE Standard.

REST

Send a POST request to the projects.locations.clusters.nodePools.create method and set networkConfig.acceleratorNetworkProfile to your profile name:

POST https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/CLUSTER_NAME/nodePools

{
  "nodePool": {
    "name": "NODE_POOL_NAME",
    "locations": [
      "ZONE"
    ],
    "config": {
      "machineType": "MACHINE_TYPE"
    },
    "networkConfig": {
      "acceleratorNetworkProfile": "PROFILE_NAME"
    }
  }
}

Replace the following:

  • PROJECT_ID: your Google Cloud project ID.
  • LOCATION: the cluster's region or zone.
  • CLUSTER_NAME: the name of your cluster.
  • NODE_POOL_NAME: the name of your new node pool.
  • ZONE: the single zone for the node pool.
  • MACHINE_TYPE: the machine type matching the profile.
  • PROFILE_NAME: the name of your ACTIVE profile.

When you create a node pool with --accelerator-network-profile, GKE automatically adds the gke.networks.io/accelerator-network-profile: PROFILE_NAME label to each node in the node pool. When you schedule Pods directly onto these nodes without a ComputeClass, include this label in your workload's nodeSelector field:

nodeSelector:
  gke.networks.io/accelerator-network-profile: "PROFILE_NAME"

To allocate the node's high-performance NICs to your Pods using GKE managed DRANET, see Allocate network resources by using GKE managed DRANET.

Verify node pool attachment

  1. To confirm that GKE attached the profile and configured the additional node networks, run the gcloud container node-pools describe command:

    gcloud container node-pools describe NODE_POOL_NAME \
        --cluster=CLUSTER_NAME \
        --location=LOCATION
    

    The output is similar to the following:

    name: np-1
    networkConfig:
      acceleratorNetworkProfile: training-a4-profile-1
      additionalNodeNetworkConfigs:
      - network: gke-anp-a721d7b1-121700-net-0
        subnetwork: gke-anp-a721d7b1-121700-subnet-0
    ...
    
  2. To list all node pools in a cluster that use a specific profile, run the gcloud container node-pools list command with a filter on networkConfig.acceleratorNetworkProfile:

    gcloud container node-pools list \
        --cluster=CLUSTER_NAME \
        --location=LOCATION \
        --filter="networkConfig.acceleratorNetworkProfile:PROFILE_NAME"
    

Use a custom profile in a ComputeClass

In Autopilot clusters and Standard clusters with node auto-provisioning, you can set acceleratorNetworkProfile in a custom ComputeClass so that GKE provisions nodes using your profile. For more information about all ComputeClass fields, see the ComputeClass custom resource.

  1. Save the following example GPU ComputeClass manifest as custom-anp-computeclass.yaml:

    apiVersion: cloud.google.com/v1
    kind: ComputeClass
    metadata:
      name: COMPUTE_CLASS_NAME
    spec:
      autopilot:
        enabled: true
      nodePoolAutoCreation:
        enabled: true
      priorities:
      - machineType: MACHINE_TYPE
        gpu:
          count: GPU_COUNT
          type: GPU_TYPE
        location:
          zones:
          - ZONE
        acceleratorNetworkProfile: "PROFILE_NAME"
      whenUnsatisfiable: DoNotScaleUp
    

    Replace the following:

    • COMPUTE_CLASS_NAME: the name for your ComputeClass custom resource.
    • MACHINE_TYPE: the machine type matching your profile, such as a3-ultragpu-8g.
    • GPU_COUNT and GPU_TYPE: the GPU count and model for the machine type, such as 8 and nvidia-h200-141gb.
    • ZONE: a single zone where GKE creates the node pool. For regional clusters using an RDMA profile, location.zones must match the profile's rdmaLocations zone.
    • PROFILE_NAME: the name of your ACTIVE AcceleratorNetworkProfile resource.

    To provision TPUs instead of GPUs, replace the machineType and gpu fields with a tpu field that matches your profile's Cloud TPU machine type. For storage-optimized machine types such as Z4M, keep the machineType field and omit the gpu field.

    If you deploy this ComputeClass resource on a Standard cluster instead of an Autopilot cluster, omit the autopilot field.

  2. Apply the ComputeClass manifest to your cluster:

    kubectl apply -f custom-anp-computeclass.yaml
    

When you deploy Pods that select this ComputeClass, GKE automatically provisions single-zone node pools and attaches them to your custom accelerator network profile.

Delete an accelerator network profile

GKE enforces three lifecycle locks to protect active workloads and network dependencies during deletion:

  • Consumer lock: you must delete all node pools that use a profile before you delete the profile. If a node pool still references the profile, deleting the profile fails with a 400 FAILED_PRECONDITION error.
  • State lock: you can't delete a profile while its lifecycleState is CREATING or DELETING. Wait for the in-progress operation to finish, and then delete the ACTIVE or FAILED profile.
  • Cluster deletion lock: you must delete all standalone AcceleratorNetworkProfile resources that belong to a cluster before you delete the cluster. GKE automatically deletes the auto profiles that it generates when you delete the last node pool that uses the profile or when you delete the cluster.

Deleting a standalone AcceleratorNetworkProfile resource automatically deletes the VPC networks, subnetworks, and Network Connectivity InternalRange resources that GKE created for that profile. If you created the profile with an existing MRDMA VPC network (--auto-config-mrdma-vpc), GKE deletes the subnetworks and InternalRange resources that it created for the profile, and leaves your MRDMA VPC network intact.

To tear down a profile and its resources, follow this sequence:

  1. Find and delete every node pool that references the profile:

    gcloud container node-pools list \
        --cluster=CLUSTER_NAME \
        --location=LOCATION \
        --filter="networkConfig.acceleratorNetworkProfile:PROFILE_NAME"
    

    For each node pool that the command returns, run the gcloud container node-pools delete command:

    gcloud container node-pools delete NODE_POOL_NAME \
        --cluster=CLUSTER_NAME \
        --location=LOCATION
    
  2. Delete the AcceleratorNetworkProfile resource:

    gcloud

    gcloud beta container accelerator-network-profiles delete PROFILE_NAME \
        --location=LOCATION
    

    Replace PROFILE_NAME with the profile name and LOCATION with the cluster's region or zone.

    REST

    Send a DELETE request to the projects.locations.acceleratorNetworkProfiles.delete method:

    DELETE https://container.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/acceleratorNetworkProfiles/PROFILE_NAME
    

    Replace PROJECT_ID with your Google Cloud project ID, LOCATION with the cluster's region or zone, and PROFILE_NAME with the profile ID. The request returns a long-running Operation resource.

  3. Optional: After all standalone profiles for the cluster finish deleting, you can delete the cluster if you no longer need it.

Troubleshoot

The following sections describe common errors when managing custom accelerator network profiles and how to resolve them.

Profile request returns 404 NOT_FOUND on a regional cluster

Symptom: Profile creation, description, or deletion fails with 404 NOT_FOUND even though the cluster exists.

Cause: You passed a Compute Engine zone in --location for a regional cluster, or a region in --location for a zonal cluster.

Resolution: Set --location to match the cluster's control plane location. For regional clusters, specify the region, such as us-central1, in --location. For RDMA machine types on regional clusters, pass the zone in --rdma-locations.

400 BAD_REQUEST when creating a profile

Symptom: Profile creation fails immediately with 400 BAD_REQUEST or INVALID_ARGUMENT.

Cause: One or more request parameters conflict with cluster or machine-type constraints.

Resolution: Check the following common causes:

  • Verify that the cluster runs GKE version 1.36.0-gke.4550000 or later and uses GKE Dataplane V2.
  • Verify that the profile name isn't auto, doesn't start with auto- or autoanp-, and matches the naming rules.
  • For RDMA machine types on regional clusters, specify a single zone within the cluster's region in --rdma-locations. For non-RDMA machine types, omit --rdma-locations.
  • For MRDMA machine types, specify --auto-create-local-mrdma-vpc, --auto-config-mrdma-network-profile, or both for managed MRDMA networks. For an existing network, specify --auto-config-mrdma-vpc. Don't combine --auto-config-mrdma-vpc with --auto-create-local-mrdma-vpc or --auto-config-mrdma-network-profile. For bare-metal RDMA machine types such as a4x-maxgpu-4g-metal, pass an existing roce-metal VPC network with --auto-config-mrdma-vpc. For non-MRDMA machine types, omit all MRDMA flags.

Profile enters the FAILED lifecycle state

Symptom: Node pool creation fails because the profile isn't ACTIVE, and describing the profile shows lifecycleState: FAILED.

Cause: GKE couldn't provision the VPC networks, subnetworks, or internal IP address ranges—for example, because your project lacks sufficient VPC quota or the GKE service agent lacks the default Kubernetes Engine Service Agent (roles/container.serviceAgent) role.

Resolution:

  1. Inspect the errorMessage field on the profile:

    gcloud beta container accelerator-network-profiles describe PROFILE_NAME \
        --location=LOCATION
    
  2. Resolve the underlying quota or IAM issue that errorMessage reports.

  3. Delete the failed profile by running the gcloud beta container accelerator-network-profiles delete command, and then create the profile again.

Profile or cluster deletion fails with a 400 error

Symptom: Deleting a profile fails with 400 FAILED_PRECONDITION, or deleting a cluster fails with a 400 error stating that accelerator network profiles still exist.

Cause: One of the teardown locks is active: a node pool still references the profile, an operation on the profile is still in CREATING or DELETING state, or standalone profiles remain on the cluster.

Resolution: Follow the sequence in Delete an accelerator network profile: delete all node pools that use the profile first, wait for any in-progress profile operations to complete, delete all standalone profiles for the cluster, and then delete the cluster.

What's next