API reference

Types and fields for the resource.nvidia.com/v1beta1 API group.

All types belong to API group resource.nvidia.com/v1beta1.

GPU opaque configuration types

These types are set as opaque configuration in ResourceClaim and ResourceClaimTemplate specs to configure GPU resources. They are optional; omit them to use driver defaults. Some fields require feature gates to be enabled.

GpuConfig

Configures a full GPU device. Target DeviceClass: gpu.nvidia.com.

With time-slicing:

apiVersion: resource.nvidia.com/v1beta1
kind: GpuConfig
sharing:
  strategy: TimeSlicing
  timeSlicingConfig:
    interval: Default       # Default | Short | Medium | Long

With MPS (Multi-Process Service):

apiVersion: resource.nvidia.com/v1beta1
kind: GpuConfig
sharing:
  strategy: MPS
  mpsConfig:
    defaultActiveThreadPercentage: 50             # optional, integer
    defaultPinnedDeviceMemoryLimit: "4Gi"         # optional, quantity
    multiUser: true                               # optional, default false
    defaultPerDevicePinnedMemoryLimit:            # optional, map
      "0": "2Gi"

Fields

FieldTypeDescription
sharingobjectOptional. Sharing strategy and its configuration. Omit to use the device exclusively.
sharing.strategystringTimeSlicing or MPS (Multi-Process Service).
sharing.timeSlicingConfig.intervalstringTime-slice duration: Default, Short, Medium, or Long. Requires the TimeSlicingSettings feature gate.
sharing.mpsConfig.defaultActiveThreadPercentageintegerThread percentage limit applied to all processes sharing the GPU. Requires the MPSSupport feature gate.
sharing.mpsConfig.defaultPinnedDeviceMemoryLimitquantityPinned memory limit applied to all devices.
sharing.mpsConfig.defaultPerDevicePinnedMemoryLimitmapPer-device override of defaultPinnedDeviceMemoryLimit. Keys are device index (integer) or UUID string.
sharing.mpsConfig.multiUserboolStarts the MPS control daemon in multi-user mode so processes with different user IDs can share the device, defaults to false when omitted, and requires a Volta or newer GPU.

MigDeviceConfig

Configures a MIG device slice. Target DeviceClass: mig.nvidia.com.

With time-slicing:

apiVersion: resource.nvidia.com/v1beta1
kind: MigDeviceConfig
sharing:
  strategy: TimeSlicing

With MPS:

apiVersion: resource.nvidia.com/v1beta1
kind: MigDeviceConfig
sharing:
  strategy: MPS
  mpsConfig:
    defaultActiveThreadPercentage: 50
    multiUser: true

Fields

FieldTypeDescription
sharingobjectOptional. Supports TimeSlicing and MPS strategies.
sharing.strategystringTimeSlicing or MPS.
sharing.mpsConfigobjectSupports the same MPS fields, defaults, and Volta-or-newer multiUser requirement as GpuConfig.sharing.mpsConfig and requires MPSSupport.

VfioDeviceConfig

Configures a VFIO passthrough device. Target DeviceClass: vfio.gpu.nvidia.com.

apiVersion: resource.nvidia.com/v1beta1
kind: VfioDeviceConfig
driverOverride: null          # optional
iommu:
  backendPolicy: LegacyOnly   # LegacyOnly | PreferIommuFD
  enableAPIDevice: true       # optional, defaults to true

Fields

FieldTypeDescription
driverOverridestringOptional. Override the GPU’s default passthrough driver that it binds to. Supported Values:
- vfio-pci
iommuobjectOptional. IOMMU backend configuration. Omit to use defaults (LegacyOnly, API device enabled).
iommu.backendPolicystringLegacyOnly (default) or PreferIommuFD. Selects the IOMMU backend used for device passthrough.
iommu.enableAPIDeviceboolOptional. Expose /dev/iommu or /dev/vfio/vfio to the workload. Defaults to true; set to false to opt out (for example, for Kata). Requires the DeviceMetadata feature gate.

LocalIPCConfig

Exposes a writable directory for same-node IPC, such as UNIX domain sockets, shared by every container that consumes a GPU device from the ResourceClaim. It must not specify requests. For cross-Pod IPC, all Pods must reference the same ResourceClaim; a ResourceClaimTemplate creates a separate claim and directory for each Pod.

The directory is backed by a per-claim tmpfs limited to 64 KiB and 1024 inodes. It is created when the claim is prepared and removed when the claim is unprepared. Use it for sockets and other small rendezvous files, not for bulk data.

apiVersion: resource.nvidia.com/v1beta1
kind: LocalIPCConfig
enabled: true

Fields

FieldTypeDescription
enabledboolWhen true, mounts the directory at /run/nvidia-dra/local-ipc and sets NVIDIA_DRA_LOCAL_IPC_DIR to that path. Defaults to false.

Trust boundary

The ResourceClaim is the trust boundary. Any container that consumes the claim can create entries in the directory. The sticky bit prevents a container from removing entries it does not own, but it does not prevent a container from binding the expected socket name before the real server does. A client that connects by name alone may then pass its memory handles to the wrong process.

The driver only provides the directory. Applications are responsible for their socket protocol and file permissions, and must authenticate the peer before passing file descriptors or other handles. For example, check the peer’s credentials with SO_PEERCRED, or have both sides prove they hold a secret mounted from the same Kubernetes Secret.

A client finds the directory through NVIDIA_DRA_LOCAL_IPC_DIR:

import os
import socket

path = os.path.join(os.environ["NVIDIA_DRA_LOCAL_IPC_DIR"], "server.sock")
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.connect(path)
# Authenticate the server before sending any handles over sock.

ComputeDomain CRDs

ComputeDomains use two Custom Resource Definitions. Unlike the GPU opaque types above, these are concrete Kubernetes resources that exist independently of ResourceClaim specs.

ComputeDomain

A user-created resource that provisions an ephemeral multi-node NVLink fabric. Creating one triggers the controller to deploy a per-domain IMEX daemon fleet and generate ResourceClaimTemplate objects that workload pods reference to claim IMEX channels. The spec is immutable after creation.

apiVersion: resource.nvidia.com/v1beta1
kind: ComputeDomain
metadata:
  name: my-compute-domain
spec:
  numNodes: 0
  channel:
    resourceClaimTemplate:
      name: my-channel
    allocationMode: Single        # Single (default) | All

Spec fields

FieldTypeDefaultDescription
spec.numNodesinteger—Deprecated. Set to 0 when using the default IMEXDaemonsWithDNSNames feature gate. Formerly used to gate workload startup until a specific number of IMEX daemons joined.
spec.channel.resourceClaimTemplate.namestring—Name of the ResourceClaimTemplate the controller creates for workload pods to claim a channel from.
spec.channel.allocationModestringSingleSingle allocates one IMEX channel per claim. All allocates the maximum number of channels available in the IMEX domain.

Status fields

FieldTypeDescription
status.statusstringReady when all expected IMEX daemons have joined; NotReady otherwise.
status.nodes[].namestringNode name.
status.nodes[].ipAddressstringNode IP used by the IMEX daemon.
status.nodes[].cliqueIDstringNVLink clique identifier for the node.
status.nodes[].indexintegerDeterministic index for the node within its clique. Used to map IPs to DNS names.
status.nodes[].statusstringPer-node daemon readiness: Ready or NotReady.

ComputeDomainClique

A ComputeDomainClique is a driver-managed resource created automatically by the IMEX daemon on each node. You do not create or modify these directly.

Each ComputeDomainClique is namespaced to the driver namespace and named as <computeDomainUID>.<cliqueID>. It tracks which nodes have joined a specific NVLink clique within a ComputeDomain and their daemon readiness.

The ComputeDomain plugin reads these objects to verify that the local IMEX daemon is ready before allowing a workload container to start.

Fields

FieldTypeDescription
daemons[].nodeNamestringNode name.
daemons[].ipAddressstringNode IP used by the IMEX daemon.
daemons[].cliqueIDstringNVLink clique identifier.
daemons[].indexintegerDeterministic index for the node within its clique. Maps to a DNS name.
daemons[].statusstringDaemon readiness: Ready or NotReady. Defaults to NotReady.

ComputeDomainDaemonSet

A cluster-scoped resource, named default, that describes the static IMEX daemons used with resources.computeDomains.imex.daemonLifecycle=static. You create and update it, Helm does not. See Static IMEX daemons.

Fields

FieldTypeDefaultDescription
spec.imagestringDaemon image. When empty, the driver image at creation is kept.
spec.imagePullSecretslistPull secrets in the driver namespace.
spec.nodeSelectormapRestricts daemons to matching nodes of a clique.
spec.priorityClassNamestringPriority class of the daemon pods.
spec.resourcesobjectRequests and limits of the daemon container.
spec.maxNodesPerCliqueinteger18Maximum daemons per clique. Immutable.
spec.imexConfigmapnvidia-imex config file settings to override or add.
spec.logVerbosityinteger1Daemon log verbosity.
spec.updateStrategy.typestringOnDeleteOnDelete or RollingUpdate.
spec.updateStrategy.rollingUpdate.maxUnavailableCliquesint or string1Cliques restarted at a time, a number or a percentage. "100%" restarts all cliques at once.
spec.updateStrategy.rollingUpdate.minReadySecondsinteger30How long updated daemons must be ready before the next batch.
spec.updateStrategy.rollingUpdate.pausedbooleanfalseStops new batches.
spec.updateStrategy.rollingUpdate.progressDeadlineSecondsinteger1200How long the daemons of a clique may take to become available before the clique is reported as stalled. Must be greater than minReadySeconds.
status.cliques[]listNodes, ready daemons, updated daemons and state (Ready, NotReady or Stalled) per clique, for up to 1024 cliques.
status.conditions[]listReady, RolloutInProgress, TemplateOutdated, UpdateBlocked, DeletionBlocked and Degraded. See Conditions.

ComputeDomain opaque configuration types

The following opaque types are set in the ResourceClaim specs generated by the ComputeDomain controller. They are managed automatically, you do not set these directly. They are documented here for reference and debugging.

ComputeDomainChannelConfig

Opaque configuration for IMEX channel ResourceClaim objects. Set by the controller in the ResourceClaimTemplate it generates from spec.channel.resourceClaimTemplate.

FieldTypeDescription
domainIDstringUID of the parent ComputeDomain resource.
allocationModestringInherited from spec.channel.allocationMode. Single or All. May be absent when Single (the default).

ComputeDomainDaemonConfig

Opaque configuration for IMEX daemon ResourceClaim objects. Set by the controller in the daemon DaemonSet.

FieldTypeDescription
domainIDstringUID of the parent ComputeDomain resource.