homelab/build/config/ansible/roles/k3s_metallb/templates/metallb-config.yaml.j2
Russell Seymour 1250c9cef6
Some checks are pending
deploy / deploy (push) Waiting to run
Initial checkin of code for managing homelab
2026-08-24 20:52:36 +01:00

26 lines
833 B
Django/Jinja

# Managed by Ansible (roles/k3s_metallb) — do not edit on the node.
#
# Plain manifests, not a HelmChart — these are MetalLB's own CRs, not chart
# values. k3s's deploy controller applies anything dropped in this
# directory, not only HelmChart CRs, and retries until the CRDs the
# HelmChart alongside this file installs actually exist.
#
# L2 (ARP/NDP) mode, not BGP — the simplest fit for a flat home LAN with no
# BGP-speaking router. One pool, one advertisement, both named "default".
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: default
namespace: {{ k3s_metallb_namespace }}
spec:
addresses:
- {{ k3s_metallb_address_range }}
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: default
namespace: {{ k3s_metallb_namespace }}
spec:
ipAddressPools:
- default