Skip to content

Commit

Permalink
sgx & gpu crds: improve comments and note sgx's initimage replacement…
Browse files Browse the repository at this point in the history
… with NFD rules

Signed-off-by: Tuomas Katila <[email protected]>
  • Loading branch information
tkatila committed Sep 15, 2023
1 parent fba183f commit df6cf95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ spec:
properties:
enableMonitoring:
description: EnableMonitoring enables the monitoring resource ('i915_monitoring')
which gives access to all GPU devices on given node.
which gives access to all GPU devices on given node. Typically used
with Intel XPU-Manager.
type: boolean
image:
description: Image is a container image with GPU device plugin executable.
Expand All @@ -73,15 +74,16 @@ spec:
preferredAllocationPolicy:
description: PreferredAllocationPolicy sets the mode of allocating
GPU devices on a node. See documentation for detailed description
of the policies. Only valid when SharedDevNum > 1 is set.
of the policies. Only valid when SharedDevNum > 1 is set. Not applicable
with ResourceManager.
enum:
- balanced
- packed
- none
type: string
resourceManager:
description: ResourceManager handles the fractional resource management
for multi-GPU nodes
for multi-GPU nodes. Enable only for clusters with GPU Aware Scheduling.
type: boolean
sharedDevNum:
description: SharedDevNum is a number of containers that can share
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ spec:
description: Image is a container image with SGX device plugin executable.
type: string
initImage:
description: InitImage is a container image with tools (e.g., SGX
NFD source hook) installed on each node.
description: Recommendation is to leave this unset and prefer the
SGX NodeFeatureRule.
type: string
logLevel:
description: LogLevel sets the plugin's log level.
Expand Down
5 changes: 3 additions & 2 deletions pkg/apis/deviceplugin/v1/gpudeviceplugin_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type GpuDevicePluginSpec struct {

// PreferredAllocationPolicy sets the mode of allocating GPU devices on a node.
// See documentation for detailed description of the policies. Only valid when SharedDevNum > 1 is set.
// Not applicable with ResourceManager.
// +kubebuilder:validation:Enum=balanced;packed;none
PreferredAllocationPolicy string `json:"preferredAllocationPolicy,omitempty"`

Expand All @@ -47,11 +48,11 @@ type GpuDevicePluginSpec struct {
// +kubebuilder:validation:Minimum=0
LogLevel int `json:"logLevel,omitempty"`

// ResourceManager handles the fractional resource management for multi-GPU nodes
// ResourceManager handles the fractional resource management for multi-GPU nodes. Enable only for clusters with GPU Aware Scheduling.
ResourceManager bool `json:"resourceManager,omitempty"`

// EnableMonitoring enables the monitoring resource ('i915_monitoring')
// which gives access to all GPU devices on given node.
// which gives access to all GPU devices on given node. Typically used with Intel XPU-Manager.
EnableMonitoring bool `json:"enableMonitoring,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/deviceplugin/v1/sgxdeviceplugin_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type SgxDevicePluginSpec struct {
// Image is a container image with SGX device plugin executable.
Image string `json:"image,omitempty"`

// InitImage is a container image with tools (e.g., SGX NFD source hook) installed on each node.
// Recommendation is to leave this unset and prefer the SGX NodeFeatureRule.
InitImage string `json:"initImage,omitempty"`

// EnclaveLimit is a number of containers that can share the same SGX enclave device.
Expand Down

0 comments on commit df6cf95

Please sign in to comment.