MetalLB Configuration - gpillon/k4all GitHub Wiki

MetalLB Configuration

MetalLB allows the use of LoadBalancer services in Kubernetes environments that do not rely on cloud service providers. It is especially useful in a home environment where dynamic external IP allocation is needed.

Configuring IP Addresses for LoadBalancer services

You need to configure MetalLB with a pool of IP addresses it can use. Here is an example configuration (you can paste directy in the Kubernetes dashboard):

apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  name: my-pool
  namespace: metallb-system
spec:
  addresses:
  - 192.168.10.0/24
  - 192.168.9.1-192.168.9.5
  - fc00:f853:0ccd:e799::/124

With this setup, MetalLB is now able to allocate IP addresses for LoadBalancer services within the specified range.