package nodepreferavoidpods
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodepreferavoidpods"
Index ¶
- Constants
- func New(_ runtime.Object, h framework.FrameworkHandle) (framework.Plugin, error)
- type NodePreferAvoidPods
Constants ¶
const Name = "NodePreferAvoidPods"
Name is the name of the plugin used in the plugin registry and configurations.
Functions ¶
func New ¶
New initializes a new plugin and returns it.
Types ¶
type NodePreferAvoidPods ¶
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 ¶
func (pl *NodePreferAvoidPods) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*NodePreferAvoidPods) Score ¶
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 ¶
func (pl *NodePreferAvoidPods) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Source Files ¶
node_prefer_avoid_pods.go
- Version
- v1.19.5
- Published
- Dec 4, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 9 minutes ago –
Tools for package owners.