Add Layer 2 advertisement for IPAddressPools

This commit is contained in:
bom 2023-01-20 10:50:53 +01:00
parent 4db72d4962
commit 5a40884543
2 changed files with 11 additions and 0 deletions

View file

@ -100,6 +100,8 @@ fun Prov.installK3s(k3sConfig: K3sConfig): ProvResult {
)
}
applyK3sFileFromResource(File(k3sManualManifestsDir, "metallb-l2advertisement.yaml"))
// traefik
if (k3sConfig.isDualStack()) {
// see https://github.com/k3s-io/k3s/discussions/5003

View file

@ -0,0 +1,9 @@
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: layer2
namespace: metallb-system
spec:
ipAddressPools:
- private
- public