An Unique CIDR for Pod on each Node
If you opt for different pod CIDRs on each worker node, the network conf on each node will be different.
The following three parameters should be different:
Name
Subnet
Gateway
Parameter | Description |
---|---|
Name | You cannot have a network with the same name and different subnet as the relevant network is created in Infoblox appliances. |
Subnet | The subnet/CIDR and gateway are different because the routes & iptables are configured in the background for each node and its respective subnet/CIDR. |
Gateway |
You need to manually update the CNI network conf file by using the k8s/cni-infoblox-plugin-without-net-conf.yaml
file to deploy cni-infoblox-plugin daemonset. It copies the infoblox plugin binary to all the worker nodes.
Example:
Node 1.
infoblox-ipam.conf: |
{
"name": "infoblox-ipam-network_10",
"type": "macvlan",
"master":"eth0",
"ipam": {
"type": "infoblox",
"subnet": "192.168.10.0/24",
"gateway":"192.168.10.1",
"network-view": "node_view"
}
}
Node 2
infoblox-ipam.conf: |
{
"name": "infoblox-ipam-network_11",
"type": "macvlan",
"master":"eth0",
"ipam": {
"type": "infoblox",
"subnet": "192.168.11.0/24",
"gateway":"192.168.11.1",
"network-view": "node_view"
}
}