package nodeports

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

Index

Constants

const Name = "NodePorts"

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 NodePorts

type NodePorts struct{}

NodePorts is a plugin that checks if a node has free ports for the requested pod ports.

func (*NodePorts) Filter

func (pl *NodePorts) Filter(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

Filter invoked at the filter extension point.

func (*NodePorts) Name

func (pl *NodePorts) Name() string

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

Source Files

node_ports.go

Version
v1.17.14
Published
Nov 11, 2020
Platform
js/wasm
Imports
7 packages
Last checked
6 minutes ago

Tools for package owners.