A Zarf Package containing a standalone version of MetalLB to act as a standalone load-balancer or be a pre-req to UDS Core.
This package requires a Zarf-initialized kubernetes cluster to be installed. This repo uses UDS to create a K3d cluster and initialize it via a bundle.
Deploy this package by first determining what IP addresses you are able to use:
$ ip addr
1: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 12:34:56:78:90:ab brd ff:ff:ff:ff:ff:ff
inet 10.0.0.10/24 brd 10.0.0.255 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 1234::5678:90ab:cdef:1234/64 scope link noprefixroute
valid_lft forever preferred_lft foreverThen deploy the package specifying the ingress IP addresses that you would like to use:
$ zarf package deploy oci://ghcr.io/defenseunicorns/packages/metallb:<version> \
--set IP_ADDRESS_POOL=10.0.0.32/27 \
--confirmOr, in the case of using this package in concert with UDS Core:
$ zarf package deploy oci://ghcr.io/defenseunicorns/packages/metallb:<version> \
--set IP_ADDRESS_ADMIN_INGRESSGATEWAY=10.0.0.32 \
--set IP_ADDRESS_TENANT_INGRESSGATEWAY=10.0.0.33 \
--set IP_ADDRESS_PASSTHROUGH_INGRESSGATEWAY=10.0.0.34 \
--confirmNote
- See Test Bundle configuration for bundle deployment instructions.
- The IP addresses used here are placeholders. You can use whatever values you want that work for your environment.
- Package versions can be found here
- If you also want a 4th default IPAddressPool you can additionally set the
IP_ADDRESS_POOLvariable too. It should be an IP range, not a single address unlike the other variables which are single address. Ranges can be specified in either CIDR notation or "StartAddress-EndAddress" notation.
The released packages can be found in ghcr.
Packages are signed using Zarf's Keyless Signing.
Packages are signed from the following versions onwards:
| Flavor | First Signed Version |
|---|---|
upstream |
0.16.1-uds.6 |
registry1 |
0.16.1-uds.38 |
unicorn |
0.16.1-uds.38 |
To verify a package, follow the below example:
uds zarf package verify "oci://ghcr.io/uds-packages/metallb:0.16.1-uds.6-upstream" \
--certificate-identity "https://github.com/uds-packages/metallb/.github/workflows/release.yaml@refs/heads/main" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"For a unicorn package, use oci://ghcr.io/uds-packages/private/metallb:<VERSION>-unicorn
as the package source.
This package is meant as a simple way to get MetalLB working for smaller clusters and doesn't support many of the more advanced options that MetalLB has.