Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

To instruct the CNI library to execute the Infoblox IPAM plugin for IP allocation from specified network, specify infoblox as the IPAM type in the CNI network configuration file (netconf). CNI configuration files in a kubernetes environment are typically located in /etc/cni/net.d

Example:

(/etc/cni/net.d/infoblox-ipam.conf)

{

"name": "infoblox-ipam-network",

"type": "macvlan",

"master": "eth0",

"ipam": {

    "type": "infoblox",

    "subnet": "10.0.0.0/24",

    "gateway": "10.0.0.1",

       "network-view": "cni_view"

}

}


Note: To run a macvlan network, enable promiscuous mode on the master interface (e.g. eth0) for each node in a kubernetes cluster. This can be done using the command ip link set eth0 promisc on.


Following are the IPAM attributes:

IPAM AttributesDescription
type (Required)Specifies the plugin type. This is also the file name of the plugin executable.
subnet (Optional)Specifies the CIDR to be used for the network. This is a well-known CNI attribute and is used by the driver.
gateway(Optional)Specifies the gateway for the network. This is a well-known CNI attribute and is simply passed through to CNI. If this attribute is mentioned, the gateway is created.
routes (Optional)If type is set to bridge, then the routes attribute specifies the routes for the network. This is a well-known CNI attribute and is simply passed through to CNI.
network-view (Optional)Specifies the Infoblox network view to use for this network. This is an Infoblox IPAM driver specific attribute. Other Infoblox specific attributes are not shown in the example configuration.



Note: The Gateway defined in the configuration file needs to be reserved as a reservation IP.  You should not use this reserved IP for other purposes.



  • No labels