kubernetes: k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodepreferavoidpods Index | Files

package nodepreferavoidpods

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodepreferavoidpods"

Index

Package Files

node_prefer_avoid_pods.go

Constants

const Name = "NodePreferAvoidPods"

Name is the name of the plugin used in the plugin registry and configurations.

func New Uses

func New(_ *runtime.Unknown, h framework.FrameworkHandle) (framework.Plugin, error)

New initializes a new plugin and returns it.

type NodePreferAvoidPods Uses

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

NodePreferAvoidPods is a plugin that priorities nodes according to the node annotation "scheduler.alpha.kubernetes.io/preferAvoidPods".

func (*NodePreferAvoidPods) Name Uses

func (pl *NodePreferAvoidPods) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (*NodePreferAvoidPods) Score Uses

func (pl *NodePreferAvoidPods) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)

Score invoked at the score extension point.

func (*NodePreferAvoidPods) ScoreExtensions Uses

func (pl *NodePreferAvoidPods) ScoreExtensions() framework.ScoreExtensions

ScoreExtensions of the Score plugin.

Package nodepreferavoidpods imports 7 packages (graph) and is imported by 1 packages. Updated 2019-11-13. Refresh now. Tools for package owners.