Installing MetalLB is very simple: just apply the manifest!
kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.2.0/manifests/metallb.yaml
This will deploy MetalLB to your cluster, under the
namespace. The components in the manifest are:
metallb-system/controllerdeployment. This is the cluster-wide controller that handles IP address assignments.
metallb-system/bgp-speakerdaemonset. This is the component that peers with your BGP router(s) and announces assigned service IPs to the world.
- Service accounts for the controller and BGP speaker, along with the RBAC permissions that the components need to function.
The installation manifest does not include a configuration file. MetalLB’s components will still start, but will remain idle until you define and deploy a configmap.