kubelet

package
v0.0.0-...-d44f63b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AvailableGPUsCount = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeServer

type NodeServer struct {
	// contains filtered or unexported fields
}

NodeServer provides the API implementation of the node server. see https://pkg.go.dev/k8s.io/kubelet/pkg/apis/dra/v1alpha3#NodeServer

func NewNodeServer

func NewNodeServer(
	ctx context.Context,
	clientSets draclientset.Interface,
	cdiRoot string,
	namespace string,
	nodeName string,
	log zlog.Logger) (*NodeServer, error)

NewNodeServer returns a new instance of the NodeServer. It also initializes the associated NodeGPUSlices object, which defines the device specs of the corresponding node.

func (*NodeServer) NodeListAndWatchResources

NodeListAndWatchResources returns a stream of NodeResourcesResponse objects. see https://pkg.go.dev/k8s.io/kubelet/pkg/apis/dra/v1alpha3#NodeServer

func (*NodeServer) NodePrepareResources

NodePrepareResources prepares several ResourceClaims for use on the node. see https://pkg.go.dev/k8s.io/kubelet/pkg/apis/dra/v1alpha3#NodeServer

func (*NodeServer) NodeUnprepareResources

NodeUnprepareResources is the opposite of NodePrepareResources. see https://pkg.go.dev/k8s.io/kubelet/pkg/apis/dra/v1alpha3#NodeServer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL