kubernetes: k8s.io/kubernetes/pkg/controller/nodeipam Index | Files | Directories

package nodeipam

import "k8s.io/kubernetes/pkg/controller/nodeipam"

Package nodeipam contains code for syncing cloud instances with node registry

Index

Package Files

doc.go node_ipam_controller.go

type Controller Uses

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

Controller is the controller that manages node ipam state.

func NewNodeIpamController Uses

func NewNodeIpamController(
    nodeInformer coreinformers.NodeInformer,
    cloud cloudprovider.Interface,
    kubeClient clientset.Interface,
    clusterCIDRs []*net.IPNet,
    serviceCIDR *net.IPNet,
    nodeCIDRMaskSize int,
    allocatorType ipam.CIDRAllocatorType) (*Controller, error)

NewNodeIpamController returns a new node IP Address Management controller to sync instances from cloudprovider. This method returns an error if it is unable to initialize the CIDR bitmap with podCIDRs it has already allocated to nodes. Since we don't allow podCIDR changes currently, this should be handled as a fatal error.

func (*Controller) Run Uses

func (nc *Controller) Run(stopCh <-chan struct{})

Run starts an asynchronous loop that monitors the status of cluster nodes.

Directories

PathSynopsis
config
config/v1alpha1
ipamPackage ipam provides different allocators for assigning IP ranges to nodes.
ipam/cidrset
ipam/sync
ipam/test

Package nodeipam imports 16 packages (graph) and is imported by 5 packages. Updated 2019-07-21. Refresh now. Tools for package owners.