MetalLB

Install/upgrade/uninstall MetalLB

Install

  1. Generate the package configuration

    eksctl anywhere generate package metallb --source cluster > metallb.yaml
    
  2. Add the desired configuration to metallb.yaml

    Please see complete configuration options for all configuration options and their default values.

    Example package file with bgp configuration:

    apiVersion: packages.eks.amazonaws.com/v1alpha1
    kind: Package
    metadata:
      name: mylb
      namespace: eksa-packages
    spec:
      packageName: metallb
      config: |
        peers:
          - peer-address: 10.220.0.2
            peer-asn: 65000
            my-asn: 65002
        address-pools:
          - name: default
            protocol: bgp
            addresses:
              - 10.220.0.90/32
              - 10.220.0.97-10.220.0.120    
    

    Example package file with ARP configuration:

    apiVersion: packages.eks.amazonaws.com/v1alpha1
    kind: Package
    metadata:
      name: mylb
      namespace: eksa-packages
    spec:
      packageName: metallb
      config: |
        address-pools:
          - name: default
            protocol: layer2
            addresses:
              - 10.220.0.90/32
              - 10.220.0.97-10.220.0.120    
    
  3. Install MetalLB

    eksctl anywhere create packages -f metallb.yaml
    
  4. Validate the installation

    eksctl anywhere get packages
    

    Example command output

    NAME   PACKAGE   AGE   STATE       CURRENTVERSION                                    TARGETVERSION                                              DETAIL
    mylb   metallb   22h   installed   0.12.1-ce5b5de19014202cebd4ab4c091830a3b6dfea06   0.12.1-ce5b5de19014202cebd4ab4c091830a3b6dfea06 (latest)
    

Upgrade

MetalLB will automatically be upgraded when a new bundle is activated.

Uninstall

To uninstall MetalLB, simply delete the package

eksctl anywhere delete package mylb