Deploy MetalLB v0.14.9 for bare-metal load balancing with L2 mode. Configuration: - IP address pool: 10.0.1.10-10.0.1.20 - L2 advertisement on ens18, eth0, enp* interfaces - Runs on all control plane nodes with automatic failover - Enables LoadBalancer service type support This allows each service to have its own dedicated IP address instead of using NodePort with random high ports. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
193 B
YAML
13 lines
193 B
YAML
apiVersion: metallb.io/v1beta1
|
|
kind: L2Advertisement
|
|
metadata:
|
|
name: default-l2
|
|
namespace: metallb-system
|
|
spec:
|
|
ipAddressPools:
|
|
- default-pool
|
|
interfaces:
|
|
- ens18
|
|
- eth0
|
|
- enp*
|