Modify IP address pools

You must use the kubectl Kubernetes command line tool to modify existing IP address pools in MKE.

  1. Obtain all of the IP address pools that are configured to MKE:

    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"]
    
  2. Modify the target IP address pool entries in the cluster_config.metallb_config configuration option of the configuration-options.

  3. Run the following kubectl command to modify the target IP address pools:

    kubectl delete IPAddressPool <IP-address-pool-name-3> -n metallb-system
    
  4. Restart MetalLB Controller to ensure that any persisting services set to use modified IP address pools receive new IPs:

    kubectl rollout restart deployment controller -n metallb-system
    

    Example output:

    deployment.apps/controller restarted