import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeports"
const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = "NodePorts" // ErrReason when node ports aren't available. ErrReason = "node(s) didn't have free ports for the requested pod ports" )
Fits checks if the pod fits the node.
New initializes a new plugin and returns it.
type NodePorts struct{}
NodePorts is a plugin that checks if a node has free ports for the requested pod ports.
func (pl *NodePorts) Filter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status
Filter invoked at the filter extension point.
Name returns name of the plugin. It is used in logs, etc.
func (pl *NodePorts) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) *framework.Status
PreFilter invoked at the prefilter extension point.
func (pl *NodePorts) PreFilterExtensions() framework.PreFilterExtensions
PreFilterExtensions do not exist for this plugin.
Package nodeports imports 5 packages (graph) and is imported by 37 packages. Updated 2020-10-16. Refresh now. Tools for package owners.