package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewCgroupNotifier returns a linuxCgroupNotifier, which performs cgroup control operations required to receive notifications from the cgroup when the threshold is crossed in either direction.
NewManager returns a configured Manager and an associated admission handler to enforce eviction configuration.
NewMemoryThresholdNotifier creates a ThresholdNotifier which is designed to respond to the given threshold.
ParseThresholdConfig parses the flags for thresholds.
PodIsEvicted returns true if the reported pod status is due to an eviction.
UpdateContainerFsThresholds will add containerfs eviction hard/soft settings based on container runtime settings.
# Constants
OffendingContainersKey is the key in eviction event annotations for the list of container names which exceeded their requests.
OffendingContainersUsageKey is the key in eviction event annotations for the list of usage of containers which exceeded their requests.
Reason is the reason reported back in status.
StarvedResourceKey is the key for the starved resource in eviction event annotations.
# Variables
DefaultEvictionHard includes default options for hard eviction.
# Structs
CgroupNotifierFactory knows how to make CgroupNotifiers which integrate with the kernel.
Config holds information about how eviction is configured.
# Interfaces
CgroupNotifier generates events from cgroup events.
ContainerGC is responsible for performing garbage collection of unused containers.
DiskInfoProvider is responsible for informing the manager how disk is configured.
ImageGC is responsible for performing garbage collection of unused images.
Manager evaluates when an eviction threshold for node stability has been met on the node.
NotifierFactory creates CgroupNotifer.
ThresholdNotifier manages CgroupNotifiers based on memory eviction thresholds, and performs a function when memory eviction thresholds are crossed.
# Type aliases
ActivePodsFunc returns pods bound to the kubelet that are active (i.e.
KillPodFunc kills a pod.
MirrorPodFunc returns the mirror pod for the given static pod and whether it was known to the pod manager.
PodCleanedUpFunc returns true if all resources associated with a pod have been reclaimed.