kvmdevice

package
v0.0.0-...-5878603 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package kvmdevice implements a Kubernetes device plugin for the virtual KVM device. Using the device plugin API allows us to take advantage of the scheduler to locate pods on machines eligible for KVM and also allows granular access control to KVM using quotas instead of needing privileged access. Since KVM devices are virtual, this plugin emulates a huge number of them so that we never run out.

Index

Constants

This section is empty.

Variables

View Source
var Name corev1.ResourceName = "devices.monogon.dev/kvm"

Name is the name of the KVM devices this plugin exposes

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	*deviceplugin.UnimplementedDevicePluginServer
	KubeletDirectory *localstorage.DataKubernetesKubeletDirectory
	// contains filtered or unexported fields
}

func (*Plugin) Allocate

func (*Plugin) GetDevicePluginOptions

func (k *Plugin) GetDevicePluginOptions(context.Context, *deviceplugin.Empty) (*deviceplugin.DevicePluginOptions, error)

func (*Plugin) Run

func (k *Plugin) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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