Index for MetalLB L2 deployment to bare metal.

Abstract

Documentation index for MetalLB L2 deployment.

Index for MetalLB L2 deployment to bare metal.#

MetalLB Readme#

You can find the main website at metallb.io.


MetalLB deployment#

  1. Create networking namespace[1].

    kubectl create ns networking
    
  2. Update the values file for your environment.

  3. Deploy the L2 version to your cluster.

    helm install --namespace networking metallb . -f values.yaml
    
  4. Define a simple IPAddressPool.

    IPAddressPool.yaml#
    apiVersion: metallb.io/v1beta1
    kind: IPAddressPool
    metadata:
      name: example
      namespace: metallb-system
    spec:
      addresses:
      - 192.168.10.0/24
      - 192.168.9.1-192.168.9.5
      - fc00:f853:0ccd:e799::/124
    

    You can see this example and more, in the metallb helm repostory.

  5. Apply a simple IPAddressPool.

    kubectl apply --namespace metallb-system -f IPAddressPool.yaml
    
  6. Define an L2Advertisement.

    L2Advertisement.yaml#
    apiVersion: metallb.io/v1beta1
    kind: L2Advertisement
    metadata:
      name: example
      namespace: metallb-system
    
  7. Apply the L2Advertisement

    kubectl --namespace metallb-system -f L2Advertisement.yaml
    

    More information is available from the metallb documentation.

MetalLB SubCharts#