Files
infrastructure/helm/metallb/metallb-config.yaml
2025-09-30 15:12:18 +02:00

27 lines
661 B
YAML

# 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