Configure MetalLB
TOC
PrerequisitesConfigure an External IP Address Pool by using the web consoleConfigure BGP Peers by using the web consoleConfigure an External IP Address Pool with L2Advertisement or BGPAdvertisement by using the CLIMonitor MetalLBView the built-in MetalLB dashboardAccess the MetalLB metrics endpointMetalLB metrics referenceTroubleshooting MetalLBPrerequisites
Please ensure that you have read the Installation documentation before proceeding.
Configure an External IP Address Pool by using the web console
-
Go to Administrator.
-
In the left navigation bar, click Network Management > External IP Address Pool.
-
Click Create External IP Address Pool.
-
Refer to the following instructions to configure certain parameters.
-
Click Create.
Configure BGP Peers by using the web console
-
Go to Administrator.
-
In the left navigation bar, click Network Management > BGP Peers.
-
Click Create BGP Peer.
-
Refer to the instructions below to configure the parameters.
-
Click Create.
Note: When you use BGP mode, allow TCP port 179 between each BGP peer and the MetalLB speaker nodes. If you configure a custom peer port, allow the configured port instead.
Configure an External IP Address Pool with L2Advertisement or BGPAdvertisement by using the CLI
BGP mode
Monitor MetalLB
After you configure MetalLB, you can use the built-in dashboard and monitoring metrics to observe IP address allocation and BGP session status.
Note: The built-in MetalLB dashboard is available in ACP 4.4.
View the built-in MetalLB dashboard
-
Go to Operations Center.
-
In the left navigation bar, click Monitoring > Monitoring Dashboards.
-
Search for MetalLB, and then open the dashboard.
The built-in MetalLB dashboard includes the following panels:
Access the MetalLB metrics endpoint
MetalLB exposes controller and speaker metrics through monitor Services in the metallb-system namespace. You can access these metrics from inside the cluster to confirm whether the components expose metrics correctly.
Check the MetalLB monitor Services:
Check the Service endpoints:
The endpoint addresses use port 17472 by default.
Query the controller metrics endpoint from inside the cluster:
Query a speaker metrics endpoint from inside the cluster:
If the command returns MetalLB metrics, the component metrics endpoint is available.
MetalLB metrics reference
The built-in MetalLB dashboard uses the following metrics:
Troubleshooting MetalLB
To see more Troubleshooting MetalLB