kubelet

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUManagerStateFilePath

func GetCPUManagerStateFilePath(rootDirectory string) string

func GetKubeletReservedOptions

func GetKubeletReservedOptions(kubeletConfiguration *kubeletconfiginternal.KubeletConfiguration, topology *topology.CPUTopology) (reservedSystemCPUs cpuset.CPUSet, kubeReserved, systemReserved corev1.ResourceList, err error)

func GetNodeAllocatableReservation

func GetNodeAllocatableReservation(numCPUs int, totalMemoryInBytes int64, evictionHard map[string]string, systemReserved, kubeReserved corev1.ResourceList, experimentalNodeAllocatableIgnoreEvictionThreshold bool) (corev1.ResourceList, error)

func GetStaticCPUManagerPolicyReservedCPUs

func GetStaticCPUManagerPolicyReservedCPUs(topology *topology.CPUTopology, kubeletConfiguration *kubeletconfiginternal.KubeletConfiguration) (cpuset.CPUSet, error)

func NewCPUTopology

func NewCPUTopology(cpuInfo *koordletutil.LocalCPUInfo) *topology.CPUTopology

func TakeByTopology

func TakeByTopology(availableCPUs cpuset.CPUSet, numCPUs int, cpuTopology *topology.CPUTopology) (cpuset.CPUSet, error)

Types

type LoopControl

type LoopControl int
const (
	Continue LoopControl = iota
	Break
)

Jump to

Keyboard shortcuts

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