MetalLB Loadbalancer is a network LB implementation that tries to “just work” on bare metal clusters.
When you enable this add on you will be asked for an IP address pool that MetalLB will hand out IPs from:
microk8s enable metallb
Alternatively you can provide the IP address pool in the enable command:
microk8s enable metallb:10.64.140.43-10.64.140.49
Multiple comma separated ranges (eg
microk8s enable metallb:10.64.140.43-10.64.140.49,10.64.141.53-10.64.141.59) are supported on the latest and 1.19+ tracks.
Note that currently this add on does not work under Multipass on macOS, due to filtering that macOS applies to network traffic.