evictions

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvictOptions added in v0.25.0

type EvictOptions struct {
	// Reason allows for passing details about the specific eviction for logging.
	Reason string
}

EvictOptions provides a handle for passing additional info to EvictPod

type PodEvictor added in v0.18.0

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

func NewPodEvictor added in v0.18.0

func NewPodEvictor(
	client clientset.Interface,
	policyGroupVersion string,
	dryRun bool,
	maxPodsToEvictPerNode *uint,
	maxPodsToEvictPerNamespace *uint,
	nodes []*v1.Node,
	metricsEnabled bool,
	eventRecorder events.EventRecorder,
) *PodEvictor

func (*PodEvictor) EvictPod added in v0.18.0

func (pe *PodEvictor) EvictPod(ctx context.Context, pod *v1.Pod, opts EvictOptions) bool

EvictPod evicts a pod while exercising eviction limits. Returns true when the pod is evicted on the server side.

func (*PodEvictor) NodeEvicted added in v0.18.0

func (pe *PodEvictor) NodeEvicted(node *v1.Node) uint

NodeEvicted gives a number of pods evicted for node

func (*PodEvictor) NodeLimitExceeded added in v0.25.0

func (pe *PodEvictor) NodeLimitExceeded(node *v1.Node) bool

NodeLimitExceeded checks if the number of evictions for a node was exceeded

func (*PodEvictor) TotalEvicted added in v0.18.0

func (pe *PodEvictor) TotalEvicted() uint

TotalEvicted gives a number of pods evicted through all nodes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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