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
Click to show internal directories.
Click to hide internal directories.