Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConfigMapKey is the name of the key in ConfigMap which store // configuration ConfigMapKey = "config" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // configuration for IP pools Pools map[string]PoolConfig `json:"pools"` // selector for nodes, if empty match all nodes NodeSelector map[string]string `json:"nodeSelector"` }
Config contains configuration for IPAM controller
type PoolConfig ¶
type PoolConfig struct { // subnet of the pool Subnet string `json:"subnet"` // amount of IPs to allocate for each node, // must be less than amount of available IPs in the subnet PerNodeBlockSize int `json:"perNodeBlockSize"` // gateway for the pool, defaults to the first IP of the Subnet if not set Gateway string `json:"gateway"` }
PoolConfig contains configuration for IP pool
Click to show internal directories.
Click to hide internal directories.