Use MetalLB in Minikube

Minikube comes with a 3rd party MetalLB addon. Enable it like any other addon.

minikube addons enable metallb

However, unlike the Ingress addon, MetalLB does require one little configuration.

kubectl edit configmaps config -n metallb-system
apiVersion: v1
  config: |
    - name: default
      protocol: layer2
      - # <-------- look here    

By default, the addresses are empty. You explicitly need to specify a range of reserved IP addresses for the load balancers. It goes without saying, the range of IP addresses should be within Minikube’s subnet.

minikube ip

In my case, Minikube’s subnet is Hence I have reserved the IPs - for load balancers.