Skip to content

API Reference

Packages

mokka.nvidia.com/v1alpha1

Package v1alpha1 contains API types for the mokka.nvidia.com group.

Resource Types

CapabilityAttribute

CapabilityAttribute is a typed variant; set exactly one field.

Appears in: - GPUCapabilities

Field Description Default Validation
bool boolean Bool stores a boolean capability value. Optional: {}
int integer Int stores an integer capability value. Optional: {}
string string String stores a string capability value. Optional: {}
strings string array Strings stores a set of string capability values. Optional: {}

ClockRates

ClockRates is a graphics/SM/memory/video clock tuple in MHz.

Appears in: - GPUClocks

Field Description Default Validation
graphics integer Graphics is the graphics clock rate in MHz. Optional: {}
sm integer SM is the streaming-multiprocessor clock rate in MHz. Optional: {}
memory integer Memory is the memory clock rate in MHz. Optional: {}
video integer Video is the video clock rate in MHz. Optional: {}

ClocksTelemetry

ClocksTelemetry reports current clock rates.

Appears in: - RuntimeTelemetry

Field Description Default Validation
graphicsMHz integer GraphicsMHz is the simulated graphics clock rate in MHz. Minimum: 0
Optional: {}
smMHz integer SMMHz is the simulated streaming-multiprocessor clock rate in MHz. Minimum: 0
Optional: {}
memoryMHz integer MemoryMHz is the simulated memory clock rate in MHz. Minimum: 0
Optional: {}
videoMHz integer VideoMHz is the simulated video clock rate in MHz. Minimum: 0
Optional: {}

ComputeCapability

ComputeCapability is the CUDA compute capability.

Appears in: - GPUModel

Field Description Default Validation
major integer Major is the major CUDA compute capability version.
minor integer Minor is the minor CUDA compute capability version.

DeviceState

Underlying type: string

DeviceState is a simulated GPU health state.

Validation: - Enum: [Healthy Degraded Failed]

Appears in: - RuntimeState

Field Description
Healthy
Degraded
Failed

FabricDomain

FabricDomain is the fabric compute domain.

Appears in: - GPUFabric

Field Description Default Validation
scope string Scope is the level at which GPUs share a fabric domain. Enum: [Node Rack Cluster]
Optional: {}
gpuCount integer GPUCount is the number of GPUs in the domain. Optional: {}

FabricSwitches

FabricSwitches is fabric switches visible per node.

Appears in: - GPUFabric

Field Description Default Validation
visiblePerNode integer VisiblePerNode is the number of fabric switches visible from each Node. Optional: {}

GPUBoard

GPUBoard is board-level identity.

Appears in: - GPUModel

Field Description Default Validation
partNumber string PartNumber is the board part number reported for the GPU. Optional: {}

GPUCapabilities

GPUCapabilities is GPU feature toggles and extensible attributes.

Appears in: - SGPUGPUs

Field Description Default Validation
mig MIGCapability MIG describes Multi-Instance GPU support. Optional: {}
attributes object (keys:string, values:CapabilityAttribute) Extensible capability flags keyed by qualified name. Optional: {}

GPUClocks

GPUClocks is clock ceilings and per-memory-clock schedules.

Appears in: - SGPUGPUs

Field Description Default Validation
maximumMHz ClockRates MaximumMHz gives the maximum graphics, SM, memory, and video clock rates. Optional: {}
supported SupportedClocks array Supported lists graphics clock rates available at each memory clock rate. Optional: {}

GPUCores

GPUCores is programmable core counts.

Appears in: - GPUModel

Field Description Default Validation
cuda integer CUDA is the number of CUDA cores per GPU. Optional: {}

GPUFabric

GPUFabric is NVLink/NVSwitch fabric.

Appears in: - SGPUTopology

Field Description Default Validation
type string Type names the GPU interconnect fabric. Optional: {}
generation integer Generation is the fabric generation. Optional: {}
linksPerGPU integer LinksPerGPU is the number of fabric links available per GPU. Optional: {}
bandwidthPerLinkMBps integer BandwidthPerLinkMBps is the bandwidth of each link in megabytes per second. Optional: {}
c2cSupported boolean C2CSupported indicates whether coherent CPU-to-GPU links are supported. Optional: {}
domain FabricDomain Domain describes the scope and size of the GPU fabric domain. Optional: {}
switches FabricSwitches Switches describes the fabric switches visible to each Node. Optional: {}

GPUFirmware

GPUFirmware is firmware versions.

Appears in: - GPUModel

Field Description Default Validation
vbiosVersion string VBIOSVersion is the video BIOS version. Optional: {}
gspVersion string GSPVersion is the GPU System Processor firmware version. Optional: {}
infoROM InfoROM InfoROM contains versions of the GPU information-ROM objects. Optional: {}

GPUMemory

GPUMemory is on-device memory.

Appears in: - SGPUGPUs

Field Description Default Validation
capacity Quantity Capacity is the total device memory capacity.
reserved Quantity Reserved is the amount of memory reserved from workloads. Optional: {}
bar1Capacity Quantity Bar1Capacity is the device BAR1 aperture size. Optional: {}
busWidthBits integer BusWidthBits is the memory bus width in bits. Optional: {}

GPUModel

GPUModel is the vendor/product identity.

Appears in: - SGPUGPUs

Field Description Default Validation
vendor string Vendor is the GPU manufacturer name. Optional: {}
product string Product is the vendor's product identifier. Optional: {}
productName string ProductName is the human-readable product name. Optional: {}
architecture string Architecture is the GPU architecture name. Optional: {}
computeCapability ComputeCapability ComputeCapability is the CUDA compute capability version. Optional: {}
cores GPUCores Cores contains programmable core counts. Optional: {}
board GPUBoard Board contains board-level identity. Optional: {}
firmware GPUFirmware Firmware contains firmware and information-ROM versions. Optional: {}

GPUPCI

GPUPCI is PCI identity and link characteristics.

Appears in: - SGPUGPUs

Field Description Default Validation
vendorID string VendorID is the PCI vendor identifier in hexadecimal. Optional: {}
deviceID string DeviceID is the PCI device identifier in hexadecimal. Optional: {}
subsystemVendorID string SubsystemVendorID is the PCI subsystem vendor identifier. Optional: {}
subsystemDeviceID string SubsystemDeviceID is the PCI subsystem device identifier. Optional: {}
maxLink PCILink MaxLink is the maximum supported PCIe generation and width. Optional: {}

GPUPower

GPUPower is the power envelope.

Appears in: - SGPUGPUs

Field Description Default Validation
managementSupported boolean ManagementSupported indicates whether power management is available. Optional: {}
limitsMilliWatts PowerLimits LimitsMilliWatts gives the minimum, default, and maximum power limits. Optional: {}

GPUSlot

GPUSlot pins one GPU to a PCI address + NUMA/root-complex/host CPU.

Appears in: - SGPUTopology

Field Description Default Validation
index integer Index is the zero-based GPU index on the Node. Maximum: 63
Minimum: 0
pciAddress string PCIAddress is the PCI bus address of this GPU. Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$
Required: {}
rootComplex string RootComplex identifies the PCI root complex connected to this GPU. Pattern: ^pci[0-9a-f]\{4\}:[0-9a-f]\{2\}$
Required: {}
numaNode integer NumaNode is the host NUMA node associated with this GPU. Optional: {}
hostProcessorIndex integer HostProcessorIndex is the host CPU index associated with this GPU. Optional: {}
parent string Parent is the root port or NIC switch port the GPU sits below, from
any slot; empty when unknown.
Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$
Optional: {}

GPUThermal

GPUThermal is thermal thresholds.

Appears in: - SGPUGPUs

Field Description Default Validation
targetCelsius integer TargetCelsius is the target GPU temperature in degrees Celsius. Optional: {}
maxOperatingCelsius integer MaxOperatingCelsius is the maximum rated operating temperature. Optional: {}
slowdownThresholdCelsius integer SlowdownThresholdCelsius is the temperature at which thermal slowdown begins. Optional: {}
shutdownThresholdCelsius integer ShutdownThresholdCelsius is the temperature at which shutdown is triggered. Optional: {}

HostCPU

HostCPU is host CPU identity.

Appears in: - SGPUHost

Field Description Default Validation
vendor string Vendor is the processor manufacturer. Optional: {}
product string Product is the processor product identifier. Optional: {}
architecture string Architecture is the host processor architecture. Optional: {}
cores integer Cores is the number of host CPU cores. Optional: {}

HostMemory

HostMemory is host memory capacity.

Appears in: - SGPUHost

Field Description Default Validation
capacity Quantity Capacity is the host memory capacity.
coherentWithGPU boolean CoherentWithGPU indicates whether host and GPU memory are coherent. Optional: {}

InfoROM

InfoROM is NVML inforom sub-object versions.

Appears in: - GPUFirmware

Field Description Default Validation
imageVersion string ImageVersion is the information-ROM image version. Optional: {}
oemObjectVersion string OEMObjectVersion is the OEM information-ROM object version. Optional: {}
eccObjectVersion string ECCObjectVersion is the ECC information-ROM object version. Optional: {}
powerObjectVersion string PowerObjectVersion is the power information-ROM object version. Optional: {}

InventoryCapacity

InventoryCapacity is realized rack/node/GPU counts.

Appears in: - RackGroupStatus - SGPUInventoryStatus

Field Description Default Validation
racks integer Racks is the number of materialized racks.
nodes integer Nodes is the number of logical Nodes across those racks.
gpus integer GPUs is the number of simulated GPUs across those Nodes.

InventoryUsage

InventoryUsage summarizes eligible placement Nodes, bound rack slots, and pending allocations.

Appears in: - RackGroupStatus - SGPUInventoryStatus

Field Description Default Validation
requestedNodes integer RequestedNodes counts eligible Nodes matching placement selectors. Inventory totals
deduplicate matches across groups; per-group values count each group's matches.
allocatedNodes integer AllocatedNodes counts rack Node slots with a live matching Kubernetes Node binding.
availableNodes integer AvailableNodes is remaining capacity after bound rack slots, never below zero.
pendingNodes integer PendingNodes counts eligible placement requests awaiting capacity in one matching group.

LaneSpeed

Underlying type: string

LaneSpeed is the per-lane signalling generation of a port.

Validation: - Enum: [SDR DDR QDR FDR10 FDR EDR HDR NDR XDR]

Appears in: - NICPort

MIGCapability

MIGCapability is MIG partitioning support.

Appears in: - GPUCapabilities

Field Description Default Validation
supported boolean Supported indicates whether MIG is available on the GPU. Optional: {}
maxGPUInstances integer MaxGPUInstances is the maximum number of GPU instances supported. Optional: {}

NICConfiguration

NICConfiguration is one firmware configuration, declared as its result: its ports, the PCI functions it produces and the RDMA devices the driver creates on them.

Appears in: - SNICProfileSpec

Field Description Default Validation
name string Name is what slots and overrides select. MinLength: 1
ports NICPort array Ports are the configuration's logical network ports, in physical order:
a port's position is its number, p0 first, and its identifiers and
names follow from that number.
Optional: {}
functions NICFunction array Functions are the PCI functions the configuration produces. MinItems: 1
rdmaDevices NICRDMADevice array RDMADevices are the RDMA devices the driver creates. Optional: {}

NICDevicePlacement

NICDevicePlacement places one PCI device of a NIC. Function numbers come from the configuration, so switching configuration never moves a device.

Appears in: - NICSlot

Field Description Default Validation
rootComplex string RootComplex is the root complex, such as pci0009:00. A GPU slot naming
the same root complex shares it.
Pattern: ^pci[0-9a-f]\{4\}:[0-9a-f]\{2\}$
bridges PCIBridge array Bridges are the NIC's switch ports above or beside the device, parents
first. A GPU slot may name one as its parent.
Optional: {}
address string Address is the device's DDDD:BB:DD address. Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}$
parent string Parent is a root port or a switch port; empty for a device on the root
bus.
Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$
Optional: {}
numaNode integer NUMANode is the device's NUMA node; -1 means unknown. Minimum: -1
vpdPosition string VPDPosition is the suffix of the VPD product name, such as -Prime or
-Aux[1].
Optional: {}

NICFunction

NICFunction is one PCI function a configuration produces.

Appears in: - NICConfiguration

Field Description Default Validation
id string ID names the function within the configuration. MinLength: 1
type string Type is a key of functionTypes. MinLength: 1
pciDevice string PCIDevice is the PCI device the function belongs to, which a slot
places, such as network or hostA.
MinLength: 1
function integer Function is the PCI function number within the device. Maximum: 7
Minimum: 0
class string Class is the PCI class code the configuration gives the function, such
as "0x020700".
Pattern: ^0x[0-9a-f]\{6\}$
ports string array Ports are the ports the function owns. A port has one owner per PCI
device, so a NIC with several host links shows it on one function per
link.
Optional: {}

NICFunctionType

NICFunctionType is the hardware identity and driver binding of one kind of PCI function. The class isn't here: the configuration decides it.

Appears in: - SNICProfileSpec

Field Description Default Validation
vendorID string VendorID is four lowercase hex digits, without 0x. Pattern: ^[0-9a-f]\{4\}$
deviceID string DeviceID is four lowercase hex digits, without 0x. Pattern: ^[0-9a-f]\{4\}$
subsystemVendorID string SubsystemVendorID is four lowercase hex digits; empty means 0000. Pattern: ^[0-9a-f]\{4\}$
Optional: {}
subsystemDeviceID string SubsystemDeviceID is four lowercase hex digits; empty means 0000. Pattern: ^[0-9a-f]\{4\}$
Optional: {}
driver string Driver is the bound kernel driver, such as mlx5_core. MinLength: 1
rdmaNamePrefix string RDMANamePrefix is the kernel's RDMA device name prefix, such as mlx5_. Optional: {}
rdmaNodeType string RDMANodeType is the node_type the driver reports; empty means "1: CA". Optional: {}
rdmaOmit RDMAAttribute array RDMAOmit lists RDMA attributes the driver doesn't create: the file is
absent.
Enum: [fw_ver hca_type board_id hw_rev]
Optional: {}
rdmaEmpty RDMAAttribute array RDMAEmpty lists RDMA attributes the driver creates with an empty value. Enum: [fw_ver hca_type board_id hw_rev]
Optional: {}
totalVFs integer TotalVFs is sriov_totalvfs; 0 means no SR-IOV. Enabling VFs is cluster
software's job, so the declaration never says how many are enabled.
Minimum: 0
Optional: {}
vfType string VFType names the function type of the VFs this function enables, a key
of functionTypes. It needs totalVFs.
Optional: {}
revision string Revision is the PCI revision ID, such as "0x00". Pattern: ^0x[0-9a-f]\{2\}$
Optional: {}
pcieLink NICPCIeLink PCIeLink is the link the function trains to. It is omitted when no
capture shows it, and then no link attributes are generated.
Optional: {}
vpd boolean VPD reports whether the function exposes the profile's VPD. Optional: {}
vpdSuffixes object (keys:string, values:string) VPDSuffixes are appended to an identity keyword's value on this kind of
function. "{function}" stands for the PCI function number.
Optional: {}
vpdOmit string array VPDOmit lists the identity keywords this kind of function doesn't
report.
Optional: {}

NICIdentity

NICIdentity is the model-level identity a NIC reports.

Appears in: - SNICProfileSpec

Field Description Default Validation
model string Model is the model name, such as ConnectX-8. MinLength: 1
hcaType string HCAType is the RDMA hca_type, such as MT4131. Optional: {}
boardID string BoardID is the RDMA board_id, such as MT_0000001513. Optional: {}
firmwareVersion string FirmwareVersion is the RDMA fw_ver; a slot may override it. Optional: {}
partNumber string PartNumber is the board part number and the default for VPD PN. Optional: {}
hwRev string HWRev is the RDMA hw_rev and the ibv_devinfo hw_ver; empty means 0x0. Pattern: ^0x[0-9a-fA-F]+$
Optional: {}
vendorOUI string VendorOUI is the IEEE OUI verbs report as vendor_id, such as "0x02c9". Pattern: ^0x[0-9a-f]+$
Optional: {}

NICOverride

NICOverride changes NIC slots of a rack profile for one rack group.

Appears in: - RackGroup

Field Description Default Validation
slots string array Slots are the names of the slots the override applies to. MinItems: 1
profile string Profile replaces the slot's profile. The slot's configuration, firmware
version, VPD and a systemImageGUID that names an RDMA device belong to
the old model, so they no longer apply; the new profile's own do, unless
this override sets them. A distinct systemImageGUID carries over.
Optional: {}
configuration string Configuration replaces the slot's configuration. Optional: {}
firmwareVersion string FirmwareVersion replaces the slot's firmware version. Optional: {}
vpd object (keys:string, values:string) VPD overrides model VPD keywords, on top of the slot's own overrides. Optional: {}
systemImageGUID string SystemImageGUID replaces the slot's systemImageGUID: "distinct", or an
RDMA device of the selected configuration.
Optional: {}

NICPCIeLink is a PCIe link as sysfs reports it.

Appears in: - NICFunctionType

Field Description Default Validation
speed string Speed is the link speed as sysfs reports it, such as "64.0 GT/s PCIe". MinLength: 1
width integer Width is the link width in lanes. Minimum: 0
maxWidth integer MaxWidth is set only when it differs from width, as on a VF reporting 0
of 255.
Minimum: 0
Optional: {}

NICPort

NICPort is one logical network port: what a fabric attaches to, not a physical connector.

Appears in: - NICConfiguration

Field Description Default Validation
id string ID names the port within the configuration. MinLength: 1
technology NICTechnology Technology is the port's link technology. Enum: [ib roce efa]
width integer Width is the lane count in the rate text, such as 4 in
"800 Gb/sec (4X XDR)".
Minimum: 1
laneSpeed LaneSpeed LaneSpeed is the per-lane signalling generation. Enum: [SDR DDR QDR FDR10 FDR EDR HDR NDR XDR]
planes integer Planes is the number of fabric planes the port carries; 0 is a single
endpoint.
Minimum: 0
capMask string CapMask is the capability mask an ib or efa port reports, which its
firmware sets. A roce port follows a rule instead.
Pattern: ^0x[0-9a-f]\{8\}$
Optional: {}
lmc integer LMC is the LID mask count; empty means 0. Maximum: 7
Minimum: 0
Optional: {}

NICRDMADevice

NICRDMADevice is an RDMA device the driver creates on a function.

Appears in: - NICConfiguration

Field Description Default Validation
id string ID names the RDMA device within the configuration. MinLength: 1
function string Function is the ID of the function the device is on. MinLength: 1
ports string array Ports are the device's ports in order: port k of the device is the k-th
entry.
MinItems: 1

NICSlot

NICSlot is one NIC instance on a Node. It names the profile and selects one of its configurations; configuration data never lives in the slot.

Appears in: - SGPUTopology

Field Description Default Validation
slot string Slot names the instance, unique per Node, such as nic0 or frontend0. MaxLength: 63
MinLength: 1
profile string Profile is the name of an SNICProfile. MinLength: 1
configuration string Configuration is one of the profile's configurations; empty means its
default.
Optional: {}
board integer Board groups the slots whose ASICs share one physical board. Board
numbers are Node-wide.
Minimum: 0
Optional: {}
systemImageGUID string SystemImageGUID is the system image GUID of the NIC's RDMA devices:
empty for the node GUID of its lowest-addressed RDMA device, an RDMA
device ID for that device's node GUID, or "distinct" for a GUID that is
no device's node GUID.
Optional: {}
gpus integer array GPUs are the indexes of the GPUs the NIC serves. They record locality;
they don't restrict which GPUs may use the NIC.
items:Maximum: 63
items:Minimum: 0
Optional: {}
firmwareVersion string FirmwareVersion overrides the profile's identity.firmwareVersion. Optional: {}
vpd object (keys:string, values:string) VPD overrides model VPD keywords, such as EC. Optional: {}
devices object (keys:string, values:NICDevicePlacement) Devices places each PCI device the profile's configurations name. One
NIC's devices may sit under different root complexes.
MinProperties: 1

NICTechnology

Underlying type: string

NICTechnology is the link technology of a port.

Validation: - Enum: [ib roce efa]

Appears in: - NICPort

Field Description
ib NICTechnologyIB is InfiniBand.
roce NICTechnologyRoCE is RDMA over Converged Ethernet.
efa NICTechnologyEFA is AWS Elastic Fabric Adapter.

NICVPD

NICVPD is the vital product data of a NIC model.

Appears in: - SNICProfileSpec

Field Description Default Validation
keywords object (keys:string, values:string) Keywords are model values by VPD keyword, such as PN, EC or V2. "name"
is the product name, to which a device's vpdPosition is appended. PN
defaults to identity.partNumber.
Optional: {}
identities object (keys:string, values:VPDScope) Identities are the keywords whose value is a generated identifier,
mapped to the scope that shares one value.
Optional: {}

PCIBridge

PCIBridge is one exposed port of a NIC's PCIe switch.

Appears in: - NICDevicePlacement

Field Description Default Validation
address string Address is the bridge's address. Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$
parent string Parent is a root port or another switch port. Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$

PCIID

PCIID is a PCI vendor and device ID pair.

Appears in: - RootPort - SNICProfileSpec

Field Description Default Validation
vendorID string VendorID is four lowercase hex digits, without 0x. Pattern: ^[0-9a-f]\{4\}$
deviceID string DeviceID is four lowercase hex digits, without 0x. Pattern: ^[0-9a-f]\{4\}$

PCILink is the PCIe max link generation and width.

Appears in: - GPUPCI

Field Description Default Validation
generation integer Generation is the maximum PCIe generation. Optional: {}
width integer Width is the maximum PCIe link width in lanes. Optional: {}

PercentRange

PercentRange is a min/max percentage bound. Both bounds are required, so an override replaces an inherited range whole.

Appears in: - UtilizationPattern

Field Description Default Validation
minimum integer Minimum is the lower utilization percentage bound. Maximum: 100
Minimum: 0
maximum integer Maximum is the upper utilization percentage bound. Maximum: 100
Minimum: 0

PolicyTargetRef

PolicyTargetRef selects the simulated GPUs a policy applies to. Each listed axis narrows the one above it, and an omitted axis selects every index. The deepest listed axis is the policy's scope: inventory, rack group, rack, Node, or GPU. A narrower scope overrides a broader one field by field. Every listed rack group must exist in the inventory, and every listed index must exist in at least one selected rack group.

Appears in: - SGPURuntimePolicySpec

Field Description Default Validation
group string Group is the API group containing the target resource. Enum: [mokka.nvidia.com]
kind string Kind is the target resource kind. Enum: [SGPUInventory]
name string Name is the name of the target SGPUInventory. MinLength: 1
rackGroups string array RackGroups optionally limits the policy to these rack-group IDs. MaxItems: 64
MinItems: 1
Optional: {}
rackIndexes integer array RackIndexes optionally limits the policy to these rack indexes. MaxItems: 64
MinItems: 1
items:Minimum: 0
Optional: {}
nodeIndexes integer array NodeIndexes optionally limits the policy to these logical Node indexes. MaxItems: 64
MinItems: 1
items:Minimum: 0
Optional: {}
gpuIndexes integer array GPUIndexes optionally limits the policy to these GPU indexes. MaxItems: 64
MinItems: 1
items:Minimum: 0
Optional: {}

PowerLimits

PowerLimits is min/default/max power caps in milliwatts.

Appears in: - GPUPower

Field Description Default Validation
minimum integer Minimum is the minimum power limit in milliwatts. Optional: {}
default integer Default is the default power limit in milliwatts. Optional: {}
maximum integer Maximum is the maximum power limit in milliwatts. Optional: {}

PowerTelemetry

PowerTelemetry drives synthetic power draw.

Appears in: - RuntimeTelemetry

Field Description Default Validation
mode string Mode selects a constant or generated power draw. Enum: [Fixed Pattern]
Optional: {}
drawMilliWatts integer DrawMilliWatts is the simulated GPU power draw in milliwatts. Minimum: 0
Optional: {}

ProfileReference

ProfileReference targets an SGPURackProfile by name.

Appears in: - RackGroup

Field Description Default Validation
name string Name is the name of the SGPURackProfile to use. MinLength: 1

RDMAAttribute

Underlying type: string

RDMAAttribute is an RDMA device attribute a driver may leave out or leave empty.

Validation: - Enum: [fw_ver hca_type board_id hw_rev]

Appears in: - NICFunctionType

RDMASoftware

RDMASoftware is what the Node image decides about RDMA, beyond what the NIC and its driver produce.

Appears in: - SGPUSoftware

Field Description Default Validation
umad boolean UMAD reports whether ib_umad loads: umad and issm files and the
infiniband_mad class exist.
Optional: {}
ipoib boolean IPoIB reports whether ib_ipoib loads: each InfiniBand port gets an IPoIB
netdev.
Optional: {}
umadMode string UMADMode is the udev file mode of umad and issm files, such as "666";
empty means the kernel's 600.
Pattern: ^[0-7]\{3,4\}$
Optional: {}
driverVersion string DriverVersion is the version the image's NIC driver module reports,
such as 26.01-1.0.0 from a driver package. Empty means the module
reports none.
Optional: {}

RackGroup

RackGroup is a homogeneous group of racks sharing a profile.

Appears in: - SGPUInventorySpec

Field Description Default Validation
id string ID uniquely identifies this group within its inventory. MaxLength: 63
MinLength: 1
count integer Count is the number of racks to materialize from this group. Maximum: 100000
Minimum: 1
profileRef ProfileReference ProfileRef names the rack profile used to materialize each rack.
placement RackPlacement Placement optionally restricts the Nodes eligible for this rack group. Optional: {}
nicOverrides NICOverride array NICOverrides replace the profile, configuration, firmware or VPD of NIC
slots for this group's racks, so groups sharing a rack profile can run
other NICs or modes. Overrides apply in order; a later one wins for a
field both set.
Optional: {}

RackGroupStatus

RackGroupStatus is the per-group Capacity + Usage projection.

Appears in: - SGPUInventoryStatus

Field Description Default Validation
id string ID identifies the rack group summarized by this status.
profileName string ProfileName is the name of the profile used to materialize the group.
capacity InventoryCapacity Capacity is the realized capacity for this group.
usage InventoryUsage Usage summarizes Node allocation for this group.

RackPlacement

RackPlacement constrains which nodes a rack group may materialize on.

Appears in: - RackGroup

Field Description Default Validation
nodeSelector LabelSelector NodeSelector restricts placement to Nodes matching these labels. Optional: {}

RootPort

RootPort is one PCIe root port of the platform.

Appears in: - SGPUTopology

Field Description Default Validation
address string Address is the root port's address, such as "0009:00:00.0". Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$
rootComplex string RootComplex is the root complex the port belongs to, such as pci0009:00. Pattern: ^pci[0-9a-f]\{4\}:[0-9a-f]\{2\}$
id PCIID ID is the root port's PCI IDs. The IDs above a device are generated
only where they are known.
Optional: {}

RuntimeModes

RuntimeModes is the persistent NVML/CUDA mode settings.

Appears in: - RuntimeState

Field Description Default Validation
persistence string Persistence controls the simulated persistence mode. Enum: [Enabled Disabled]
Optional: {}
compute string Compute selects the simulated compute mode. Enum: [Default Exclusive Prohibited]
Optional: {}
mig string MIG controls whether Multi-Instance GPU mode is enabled. Enum: [Enabled Disabled]
Optional: {}
ecc string ECC controls whether error-correcting code is enabled. Enum: [Enabled Disabled]
Optional: {}
accounting string Accounting controls whether GPU accounting mode is enabled. Enum: [Enabled Disabled]
Optional: {}

RuntimeState

RuntimeState is the effective runtime settings of a simulated GPU. Sparse: omitted fields inherit; explicit zero is a set value.

Appears in: - SGPURackProfileDefaults - SGPURuntimePolicySpec

Field Description Default Validation
deviceState DeviceState DeviceState is the simulated health state of the GPU. Enum: [Healthy Degraded Failed]
Optional: {}
modes RuntimeModes Modes contains persistent NVML/CUDA mode settings. Optional: {}
telemetry RuntimeTelemetry Telemetry contains synthetic utilization, power, temperature, and clock values. Optional: {}

RuntimeTelemetry

RuntimeTelemetry is the synthetic NVML telemetry.

Appears in: - RuntimeState

Field Description Default Validation
performanceState string NVML P-state, e.g. "P0". Pattern: ^P[0-9]+$
Optional: {}
utilization UtilizationTelemetry Utilization defines synthetic GPU and memory utilization values. Optional: {}
power PowerTelemetry Power defines synthetic power draw values. Optional: {}
temperature TemperatureTelemetry Temperature defines synthetic GPU and memory temperature values. Optional: {}
clocks ClocksTelemetry Clocks defines the current simulated clock rates. Optional: {}

SGPUGPUs

SGPUGPUs is the shared template for every GPU on the node.

Appears in: - SGPUNode

Field Description Default Validation
count integer Count is the number of GPUs exposed on each Node. Maximum: 64
Minimum: 1
model GPUModel Model describes the GPU vendor, product, and architecture.
memory GPUMemory Memory describes device memory capacity and bus width.
pci GPUPCI PCI describes device identifiers and maximum link properties.
power GPUPower Power describes power-management support and device limits. Optional: {}
thermal GPUThermal Thermal describes device temperature thresholds. Optional: {}
clocks GPUClocks Clocks describes maximum and supported device clock rates. Optional: {}
capabilities GPUCapabilities Capabilities describes MIG support and additional named capabilities. Optional: {}

SGPUHost

SGPUHost is host CPU + memory.

Appears in: - SGPUNode

Field Description Default Validation
cpu HostCPU CPU describes the host processor presented by the simulated Node. Optional: {}
memory HostMemory Memory describes host memory presented by the simulated Node. Optional: {}

SGPUInventory

SGPUInventory is a set of simulated GPU racks to distribute across CPU nodes.

Field Description Default Validation
apiVersion string mokka.nvidia.com/v1alpha1
kind string SGPUInventory
metadata ObjectMeta Refer to Kubernetes API documentation for fields of metadata.
spec SGPUInventorySpec Spec defines the simulated rack groups managed by this inventory.
status SGPUInventoryStatus Status reports the capacity and usage currently realized by the controller. Optional: {}

SGPUInventorySpec

SGPUInventorySpec is the desired rack composition.

Appears in: - SGPUInventory

Field Description Default Validation
rackGroups RackGroup array RackGroups declares homogeneous sets of racks. One group can expand to
many racks; the controller admits at most 64 groups across all Inventories.
MaxItems: 64
MinItems: 1

SGPUInventoryStatus

SGPUInventoryStatus is the Control Plane view of realized capacity and usage.

Appears in: - SGPUInventory

Field Description Default Validation
rackGroupsSummary string RackGroupsSummary is a comma-joined rendering of rack-group IDs. Optional: {}
capacity InventoryCapacity Capacity is the total rack, Node, and GPU capacity realized by this inventory. Optional: {}
usage InventoryUsage Usage summarizes requested and allocated Nodes across the inventory. Optional: {}
rackGroups RackGroupStatus array RackGroups contains per-group capacity and usage summaries. Optional: {}
conditions Condition array Conditions report the latest inventory acceptance and programming results. Optional: {}

SGPUNode

SGPUNode is a homogeneous logical node in the rack.

Appears in: - SGPURackProfileSpec

Field Description Default Validation
gpus SGPUGPUs GPUs defines the homogeneous simulated GPU set on each Node.
host SGPUHost Host describes the CPU and memory presented by each Node. Optional: {}
topology SGPUTopology Topology describes PCIe slots and optional GPU/network fabrics. Required: {}

SGPUNodeReference

SGPUNodeReference identifies an exact Kubernetes Node instance.

Appears in: - SGPURackNode

Field Description Default Validation
name string Name is the Kubernetes Node name. MinLength: 1
uid UID UID distinguishes this Node instance from a replacement with the same name.

SGPURack

SGPURack is the controller-owned materialization of one inventory rack. Its controller owner reference identifies the inventory pinned by spec.inventoryRef.

Field Description Default Validation
apiVersion string mokka.nvidia.com/v1alpha1
kind string SGPURack
metadata ObjectMeta Refer to Kubernetes API documentation for fields of metadata.
spec SGPURackSpec Spec is the rendered rack definition and its logical Node bindings.
status SGPURackStatus Status summarizes the rack's durable Node assignments. Optional: {}

SGPURackGPU

SGPURackGPU contains deterministic identity and structural placement.

Appears in: - SGPURackNode

Field Description Default Validation
index integer Index is the zero-based GPU index within the logical Node. Maximum: 63
Minimum: 0
uuid string UUID is the stable GPU identifier. Pattern: ^GPU-[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}$
serial string Serial is the GPU serial number. MinLength: 1
minorNumber integer MinorNumber is the device minor number exposed to workloads. Minimum: 0
pciAddress string PCIAddress is the GPU's PCI bus address. Pattern: ^[0-9a-f]\{4\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\.[0-7]$
rootComplex string RootComplex identifies the PCI root complex connected to the GPU. Pattern: ^pci[0-9a-f]\{4\}:[0-9a-f]\{2\}$
numaNode integer NUMANode is the host NUMA node associated with the GPU. Minimum: 0
hostProcessorIndex integer HostProcessorIndex is the host CPU index associated with the GPU. Minimum: 0

SGPURackIdentity

SGPURackIdentity contains deterministic rack coordinates and fabric identity.

Appears in: - SGPURackSpec

Field Description Default Validation
rackGroup string RackGroup is the rack-group identifier within the source inventory. Format: dns1123Label
MaxLength: 63
MinLength: 1
rackIndex integer RackIndex is the zero-based rack index within its group. Minimum: 0
fabricUUID string FabricUUID identifies the fabric domain associated with the rack. Format: uuid
cliqueID integer CliqueID is reserved for future multi-clique layouts and remains zero. Maximum: 0
Minimum: 0

SGPURackInventoryReference

SGPURackInventoryReference pins a rack to an exact inventory instance.

Appears in: - SGPURackSpec

Field Description Default Validation
name string Name is the inventory name. MinLength: 1
uid UID UID pins the reference to the exact inventory instance.

SGPURackNode

SGPURackNode is one logical Node and its optional Kubernetes Node binding.

Appears in: - SGPURackSpec

Field Description Default Validation
index integer Index is the zero-based logical Node index within the rack. Maximum: 1023
Minimum: 0
nodeRef SGPUNodeReference NodeRef is absent while the logical Node is unbound. Its UID distinguishes
a replacement Kubernetes Node that reuses the same name.
Optional: {}
gpus SGPURackGPU array GPUs are rendered once for the logical Node and do not depend on its binding. MaxItems: 64
MinItems: 1

SGPURackProfile

SGPURackProfile is the static shape of a simulated GPU rack.

Field Description Default Validation
apiVersion string mokka.nvidia.com/v1alpha1
kind string SGPURackProfile
metadata ObjectMeta Refer to Kubernetes API documentation for fields of metadata.
spec SGPURackProfileSpec Spec defines the hardware shape and default software/runtime metadata.

SGPURackProfileDefaults

SGPURackProfileDefaults is initial runtime state for fresh sGPUs.

Appears in: - SGPURackProfileSpec

Field Description Default Validation
runtime RuntimeState Runtime provides initial sparse runtime settings for newly materialized GPUs. Optional: {}

SGPURackProfileReference

SGPURackProfileReference pins rendered data to an exact profile revision.

Appears in: - SGPURackSpec

Field Description Default Validation
name string Name is the profile name. MinLength: 1
uid UID UID pins the reference to the exact profile instance.
generation integer Generation records the profile generation used for rendering. Minimum: 1
revision string Revision identifies the rendered profile content, independent of its name. Pattern: ^[0-9a-f]\{64\}$

SGPURackProfileSpec

SGPURackProfileSpec is one logical rack profile.

Appears in: - SGPURackProfile

Field Description Default Validation
rack SGPURackShape Rack is the logical rack shape described by this profile.
node SGPUNode Node describes the shared simulated hardware for each rack Node.
software SGPUSoftware Software records optional driver, NVML, and CUDA versions. Optional: {}
defaults SGPURackProfileDefaults Defaults provides initial runtime settings for newly materialized GPUs. Optional: {}

SGPURackShape

SGPURackShape defines the dimensions of a logical rack template. It is nested profile data rather than a materialized SGPURack resource.

Appears in: - SGPURackProfileSpec

Field Description Default Validation
nodesPerRack integer NodesPerRack is the number of logical Nodes in each rack. Maximum: 1024
Minimum: 1

SGPURackSpec

SGPURackSpec is a rendered rack with durable logical Node bindings.

Appears in: - SGPURack

Field Description Default Validation
inventoryRef SGPURackInventoryReference InventoryRef pins ownership to an exact inventory instance so a
same-name replacement cannot inherit this rack.
profileRef SGPURackProfileReference ProfileRef records the exact profile revision used to render the rack.
identity SGPURackIdentity Identity is the stable coordinate used by agents and topology consumers.
nodes SGPURackNode array Nodes retain stable device identities while Kubernetes Node assignments
change. Fabric and network capabilities remain in the referenced profile.
MaxItems: 1024
MinItems: 1

SGPURackStatus

SGPURackStatus summarizes durable logical Node assignments.

Appears in: - SGPURack

Field Description Default Validation
observedGeneration integer ObservedGeneration is the latest spec generation reflected by this status. Minimum: 0
Optional: {}
assignedNodes integer AssignedNodes is the number of logical Nodes with an exact Kubernetes
Node binding.
Minimum: 0
Optional: {}
conditions Condition array Conditions report whether the rendered assignment is ready for agents. Optional: {}

SGPURuntimePolicy

SGPURuntimePolicy applies a sparse RuntimeState override to a subset of an SGPUInventory.

Field Description Default Validation
apiVersion string mokka.nvidia.com/v1alpha1
kind string SGPURuntimePolicy
metadata ObjectMeta Refer to Kubernetes API documentation for fields of metadata.
spec SGPURuntimePolicySpec Spec defines the target selection and runtime settings to apply.
status SGPURuntimePolicyStatus Status summarizes the target scope selected for this policy. Optional: {}

SGPURuntimePolicySpec

SGPURuntimePolicySpec pairs a target selector with the RuntimeState to apply.

Appears in: - SGPURuntimePolicy

Field Description Default Validation
targetRef PolicyTargetRef TargetRef selects the inventory and optional rack, Node, and GPU subset.
runtime RuntimeState Runtime contains sparse settings to apply to the selected GPUs. Optional: {}

SGPURuntimePolicyStatus

SGPURuntimePolicyStatus reports whether the policy is accepted and holds comma-joined denormalizations of spec.targetRef axes for print columns.

Appears in: - SGPURuntimePolicy

Field Description Default Validation
rackGroupsSummary string RackGroupsSummary is the comma-separated selected rack-group IDs. Optional: {}
rackIndexesSummary string RackIndexesSummary is the comma-separated selected rack indexes. Optional: {}
nodeIndexesSummary string NodeIndexesSummary is the comma-separated selected logical Node indexes. Optional: {}
gpuIndexesSummary string GPUIndexesSummary is the comma-separated selected GPU indexes. Optional: {}
conditions Condition array Conditions report whether the policy is accepted. Optional: {}

SGPUSoftware

SGPUSoftware is driver/NVML/CUDA versions.

Appears in: - SGPURackProfileSpec

Field Description Default Validation
driverVersion string DriverVersion is the NVIDIA driver version. Optional: {}
nvmlVersion string NVMLVersion is the NVIDIA Management Library version. Optional: {}
cudaVersion string CUDAVersion is the CUDA version. Optional: {}
rdma RDMASoftware RDMA describes the Node image's RDMA stack: which optional modules it
loads and the version its NIC driver reports.
Optional: {}

SGPUTopology

SGPUTopology is the PCIe slots, GPU fabric and NICs visible to the node. GPUs and NICs share one PCIe tree: root ports are declared once, and every GPU slot, NIC device and NIC switch port names its parent in that tree.

Appears in: - SGPUNode

Field Description Default Validation
rootPorts RootPort array RootPorts are the platform's PCIe root ports, once per Node. MaxItems: 256
Optional: {}
gpuSlots GPUSlot array GPUSlots maps each GPU index to its PCI and host topology coordinates. MaxItems: 64
MinItems: 1
gpuFabric GPUFabric GPUFabric describes optional NVLink/NVSwitch connectivity. Optional: {}
nics NICSlot array NICs places one NIC instance per entry on the Node: an SNICProfile, the
configuration it runs and where each of its PCI devices sits.
MaxItems: 64
Optional: {}

SNICProfile

SNICProfile is one NIC model as packaged on a card, and every firmware configuration it can run, each declared as its result. It holds model data only: no addresses, identifiers or counts of a particular node. NIC slots in SGPURackProfile place instances of it on a node.

Field Description Default Validation
apiVersion string mokka.nvidia.com/v1alpha1
kind string SNICProfile
metadata ObjectMeta Refer to Kubernetes API documentation for fields of metadata.
spec SNICProfileSpec Spec describes the NIC model and its configurations.

SNICProfileSpec

SNICProfileSpec is the model data of an SNICProfile.

Appears in: - SNICProfile

Field Description Default Validation
identity NICIdentity Identity is what the NIC reports about itself, the same in every
configuration.
sources string array Sources cites the captures or documents the values come from. Optional: {}
switchPort PCIID SwitchPort identifies the ports of the NIC's own PCIe switch, which slots
place as bridges.
Optional: {}
vpd NICVPD VPD is the vital product data of the functions whose type has vpd set. Optional: {}
functionTypes object (keys:string, values:NICFunctionType) FunctionTypes are the kinds of PCI function the NIC can expose, keyed by
the name configurations use.
MinProperties: 1
defaultConfiguration string DefaultConfiguration names the configuration used when neither the
cluster nor the slot selects one.
MinLength: 1
configurations NICConfiguration array Configurations are the firmware configurations the card can run, each
declared as its result.
MinItems: 1

SupportedClocks

SupportedClocks pairs a memory clock with supported graphics clocks.

Appears in: - GPUClocks

Field Description Default Validation
memoryMHz integer MemoryMHz is a memory clock rate paired with GraphicsMHz values.
graphicsMHz integer array GraphicsMHz lists graphics clock rates supported at MemoryMHz.

TemperatureTelemetry

TemperatureTelemetry drives synthetic GPU/memory temperature.

Appears in: - RuntimeTelemetry

Field Description Default Validation
mode string Mode selects constant or generated temperature values. Enum: [Fixed Pattern]
Optional: {}
gpuCelsius integer GPUCelsius is the simulated GPU temperature in degrees Celsius. Optional: {}
memoryCelsius integer MemoryCelsius is the simulated memory temperature in degrees Celsius. Optional: {}

UtilizationPattern

UtilizationPattern shapes the generated utilization curve.

Appears in: - UtilizationTelemetry

Field Description Default Validation
type string Type selects the shape of the generated utilization curve. Enum: [Steady Bursty Wave]
Optional: {}
gpuPercent PercentRange GPUPercent sets the minimum and maximum GPU utilization percentages. Optional: {}
memoryPercent PercentRange MemoryPercent sets the minimum and maximum memory utilization percentages. Optional: {}

UtilizationTelemetry

UtilizationTelemetry drives synthetic GPU/memory utilization.

Appears in: - RuntimeTelemetry

Field Description Default Validation
mode string Mode selects pattern-generated or fixed utilization values. Enum: [Pattern Fixed]
Optional: {}
pattern UtilizationPattern Pattern defines the utilization values generated over time. Optional: {}

VPDScope

Underlying type: string

VPDScope names which NIC functions share one generated VPD value: board, asic or boardPosition, or another identity keyword whose generated value this one reuses before its function suffix, as a BlueField's VU starts with its SN.

Validation: - Pattern: ^(board|asic|boardPosition|[A-Z0-9]{2})$

Appears in: - NICVPD

Field Description
board VPDScopeBoard shares one value across every slot on the same board.
asic VPDScopeASIC shares one value across the functions of one slot.
boardPosition VPDScopeBoardPosition shares one value across the devices on one board
whose placement gives the same VPD position.