ipam

package
v2.25.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

README

IP Address Management controller

Responsibilities:

  • Used for KKP setups that do not have DHCP available
  • Can only be used for vsphere, as all other platforms have DHCP
  • The IPAM controller gets configured with a set of subnets
  • For all machines with an machine-controller.kubermatic.io/initializers annotation that contains the value ipam, it will allocate an IP address

Documentation

Overview

Package ipam contains a controller responsible for assigning IP addresses from a configured pool to machines that have an annotation keyed `machine-controller.kubermatic.io/initializers` which contains the value ipam. After that is done, the `ipam` value is removed.

This is used for environments where no DHCP is available. The aforementioned annotation will keep the machine-controller from reconciling the machine.

Index

Constants

View Source
const (
	// ControllerName is the name of this controller.
	ControllerName = "kkp-ipam-controller"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, cidrRanges []Network, log *zap.SugaredLogger) error

Types

type Network

type Network struct {
	IP         net.IP
	IPNet      net.IPNet
	Gateway    net.IP
	DNSServers []net.IP
}

Network represents a machine network configuration.

Jump to

Keyboard shortcuts

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