# metallb-config.yaml # This first resource defines the pool of IP addresses that MetalLB can use. apiVersion: metallb.io/v1beta1 kind: IPAddressPool metadata: name: default-pool namespace: i-metallb spec: addresses: - 192.168.178.200-192.168.178.250 --- # This second resource tells MetalLB HOW to advertise the IPs from the pool. # Here, we're using Layer 2 mode. apiVersion: metallb.io/v1beta1 kind: L2Advertisement metadata: name: default-advertisement namespace: i-metallb spec: # This selector links this advertisement to the IPAddressPool defined above. # You can leave it empty to select all pools. ipAddressPools: - default-pool