package nodeipam
import "k8s.io/kubernetes/pkg/controller/nodeipam"
Package nodeipam contains code for syncing cloud instances with node registry
Index ¶
- func Register()
- type Controller
- func NewNodeIpamController( nodeInformer coreinformers.NodeInformer, cloud cloudprovider.Interface, kubeClient clientset.Interface, clusterCIDR *net.IPNet, serviceCIDR *net.IPNet, nodeCIDRMaskSize int, allocatorType ipam.CIDRAllocatorType) (*Controller, error)
- func (nc *Controller) Run(stopCh <-chan struct{})
Functions ¶
func Register ¶
func Register()
Register the metrics that are to be monitored.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller that manages node ipam state.
func NewNodeIpamController ¶
func NewNodeIpamController( nodeInformer coreinformers.NodeInformer, cloud cloudprovider.Interface, kubeClient clientset.Interface, clusterCIDR *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 ¶
func (nc *Controller) Run(stopCh <-chan struct{})
Run starts an asynchronous loop that monitors the status of cluster nodes.
Source Files ¶
doc.go metrics.go node_ipam_controller.go
Directories ¶
Path | Synopsis |
---|---|
pkg/controller/nodeipam/ipam | Package ipam provides different allocators for assigning IP ranges to nodes. |
pkg/controller/nodeipam/ipam/cidrset | |
pkg/controller/nodeipam/ipam/sync | |
pkg/controller/nodeipam/ipam/test |
- Version
- v1.13.0-beta.2
- Published
- Nov 23, 2018
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 4 minutes ago –
Tools for package owners.