node

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RuntimeEndpoint string
)

Functions

func GetNodeHostIPs

func GetNodeHostIPs(node *v1.Node) ([]net.IP, error)

GetNodeHostIPs returns the provided node's IP(s); either a single "primary IP" for the node in a single-stack cluster, or a dual-stack pair of IPs in a dual-stack cluster (for nodes that actually have dual-stack IPs). Among other things, the IPs returned from this function are used as the `.status.PodIPs` values for host-network pods on the node, and the first IP is used as the `.status.HostIP` for all pods on the node. https://github.com/kubernetes/kubernetes/blob/971477d9b5cc4bf5ae62abe3bbc46e534f481e1b/pkg/util/node/node.go

func WriteCNIConfig

func WriteCNIConfig(ranges []string) (err error)

Types

type NodeController

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

func NewNodeController

func NewNodeController(nodeName string, client clientset.Interface, nodeInformer coreinformers.NodeInformer) *NodeController

func (*NodeController) Run

func (c *NodeController) Run(ctx context.Context, workers int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL