From f297d0f55ca115655c9a687eb1c89156fb92c928 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 5 Aug 2024 17:06:41 -0500 Subject: [PATCH] Add MetalLB advertisement --- clusters/my-cluster/metallb-system/ip-address-pool.yaml | 9 +++++++++ clusters/my-cluster/metallb-system/kustomization.yaml | 2 ++ clusters/my-cluster/metallb-system/l2-advertisement.yaml | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100644 clusters/my-cluster/metallb-system/ip-address-pool.yaml create mode 100644 clusters/my-cluster/metallb-system/l2-advertisement.yaml diff --git a/clusters/my-cluster/metallb-system/ip-address-pool.yaml b/clusters/my-cluster/metallb-system/ip-address-pool.yaml new file mode 100644 index 0000000..7adcd3f --- /dev/null +++ b/clusters/my-cluster/metallb-system/ip-address-pool.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: first-pool + namespace: metallb-system +spec: + addresses: + - 10.100.100.240-10.100.100.250 diff --git a/clusters/my-cluster/metallb-system/kustomization.yaml b/clusters/my-cluster/metallb-system/kustomization.yaml index d865844..9bb68de 100644 --- a/clusters/my-cluster/metallb-system/kustomization.yaml +++ b/clusters/my-cluster/metallb-system/kustomization.yaml @@ -3,3 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - metallb-native.yaml + - ip-address-pool.yaml + - l2-advertisement.yaml diff --git a/clusters/my-cluster/metallb-system/l2-advertisement.yaml b/clusters/my-cluster/metallb-system/l2-advertisement.yaml new file mode 100644 index 0000000..8007f64 --- /dev/null +++ b/clusters/my-cluster/metallb-system/l2-advertisement.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: example + namespace: metallb-system