Skip to main content

Interface: ResourceSliceSpec

Defined in: lib/k8s/resourceSlice.ts:93

What a driver publishes about its devices. Exactly one of nodeName, nodeSelector, allNodes and perDeviceNodeSelection says where they can be used.

Properties​

allNodes?​

optional allNodes?: boolean;

Defined in: lib/k8s/resourceSlice.ts:103

Set when every node in the cluster can use the devices.


devices?​

optional devices?: ResourceSliceDevice[];

Defined in: lib/k8s/resourceSlice.ts:107

The devices in the slice.


driver​

driver: string;

Defined in: lib/k8s/resourceSlice.ts:95

The name of the DRA driver that publishes the slice, for example gpu.example.com.


nodeName?​

optional nodeName?: string;

Defined in: lib/k8s/resourceSlice.ts:99

The one node that can use the devices, for devices local to a node.


nodeSelector?​

optional nodeSelector?: object;

Defined in: lib/k8s/resourceSlice.ts:101

The nodes that can use the devices, for devices shared by several nodes.

nodeSelectorTerms​

nodeSelectorTerms: NodeSelectorTerm[];

perDeviceNodeSelection?​

optional perDeviceNodeSelection?: boolean;

Defined in: lib/k8s/resourceSlice.ts:105

Set when each device says which nodes can use it.


pool​

pool: ResourcePool;

Defined in: lib/k8s/resourceSlice.ts:97

The pool the slice belongs to.