Add IP address pools¶
MKE allows you to add IP address pools once MetalLB has been deployed in the MKE cluster. To do this, you use an MKE configuration file.
Obtain the current MKE configuration file for the cluster.
Verify that the
enabled
parameter setting for thecluster_config.metallb_config
configuration option is set totrue
.Update the
cluster_config.metallb_config
configuration option with the details for the new IP address pools.[cluster_config.metallb_config] enabled = true [[cluster_config.metallb_config.metallb_ip_addr_pool]] name = "<IP-address-pool-name-1>” external_ip = ["192.168.10.0/24", "192.168.1.0/24"] [[cluster_config.metallb_config.metallb_ip_addr_pool]] name = "<IP-address-pool-name-2>” external_ip = ["52.205.10.1/24"] [[cluster_config.metallb_config.metallb_ip_addr_pool]] name = "<IP-address-pool-name>-3” external_ip = ["54.205.10.0/24"]
Upload the modified MKE configuration file.
Verify the addition of the new IP address pool to the system:
kubectl get IPAddressPools -n metallb-system
Example output:
NAME AUTO ASSIGN AVOID BUGGY IPS ADDRESSES <IP-address-pool-name-1> true false ["192.168.10.0/24","192.168.1.0/24"] <IP-address-pool-name-2> true false ["52.205.10.1/24"] <IP-address-pool-name-3> true false ["54.205.10.1/24"]