onepodpernodeccontroller

package
v0.0.0-...-d72e84d Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOnePodPerNodeController

func NewOnePodPerNodeController(
	name string,
	namespace string,
	podSelector *metav1.LabelSelector,
	minReadySeconds int32,
	recorder events.Recorder,
	operatorClient v1helpers.OperatorClientWithFinalizers,
	kubeClient kubernetes.Interface,
	podInformer coreinformersv1.PodInformer,
) factory.Controller

Types

type OnePodPerNodeController

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

OnePodPerNodeController is a generic controller that ensures that only one pod is scheduled per node.

This is useful in cases where topology spread is desired. We have encountered cases where the scheduler is misscheduling a pod. The scheduler still does need to be fixed, but this keeps the platform from failing.

func (*OnePodPerNodeController) Name

func (c *OnePodPerNodeController) Name() string

Jump to

Keyboard shortcuts

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