Hi Everyone,
It has been a while since I setup MetallB and I have come across some changes that you can find here:
https://metallb.universe.tf/configuration/
Now for the Layer 2 configuration you need to create IPAddressPool and and L2Advertisement.
So for a quick install as per the documenation:
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml
then create a yaml file, like this IpaddressPool.yaml with contents (these are IPs from the documentation you need to replace with your own):
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- 192.168.1.240-192.168.1.250
Then:
kubectl apply -f IpaddressPool.yaml
Next the advertisement L2advertise.yaml:
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: example
namespace: metallb-system
kubectl apply -f L2advertise.yaml