Configure MetalLB IP Address Pools

  1. Copy sample configuration for the MetalLB IP address pools configuration from the same documentation url (step #12)

    or

    Use single-nic-vlan-metallb-address-pools.sample file.

  2. Create a copy of sample config to create MetalLB IP Address Pools configuration file.

    cp single-nic-vlan-metallb-address-pools.sample osp-ng-metal-lb-ip-address-pools.yaml
  3. Edit the file for use with your preferred editor.

    vi osp-ng-metal-lb-ip-address-pools.yaml
  4. Make sure ip address ranges are as pre desired configuration form the network configuration table.

  5. Apply the configuration in osp-ng-metal-lb-ip-address-pools.yaml file

    oc apply -f osp-ng-metal-lb-ip-address-pools.yaml
  6. Verify the metallb ip address pools using below command:

    oc get ipaddresspools.metallb.io -n metallb-system
    Sample Output
    NAME          AUTO ASSIGN   AVOID BUGGY IPS   ADDRESSES
    ctlplane      true          false             ["172.22.0.80-172.22.0.90"]
    internalapi   true          false             ["172.17.0.80-172.17.0.90"]
    storage       true          false             ["172.18.0.80-172.18.0.90"]
    tenant        true          false             ["172.19.0.80-172.19.0.90"]