From 5ca1b527f8a3b3139756455c1d387d792401d117 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 21 Dec 2024 22:47:40 +0100 Subject: [PATCH] feat: Add kustomization for res and metallb configuration --- metallb/configmap.yaml | 4 ++-- metallb/ipaddresspool.yaml | 2 +- metallb/kustomization.yaml | 1 + metallb/l2advertisement.yaml | 8 ++++++++ res/kustomization.yaml | 1 - 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 metallb/l2advertisement.yaml diff --git a/metallb/configmap.yaml b/metallb/configmap.yaml index 6149eb7..e5a0844 100644 --- a/metallb/configmap.yaml +++ b/metallb/configmap.yaml @@ -7,6 +7,6 @@ data: config: | ipaddress-pools: - name: default - protocol: layer2 addresses: - - 10.20.0.1-10.20.0.100 + - 10.20.0.0/24 + - 51.15.80.73/32 diff --git a/metallb/ipaddresspool.yaml b/metallb/ipaddresspool.yaml index f6c8056..5b17e7f 100644 --- a/metallb/ipaddresspool.yaml +++ b/metallb/ipaddresspool.yaml @@ -6,4 +6,4 @@ metadata: spec: addresses: - 51.15.80.73/32 - - 192.168.56.0/24 + - 10.10.0.0/24 diff --git a/metallb/kustomization.yaml b/metallb/kustomization.yaml index 8f84499..4d90544 100644 --- a/metallb/kustomization.yaml +++ b/metallb/kustomization.yaml @@ -4,3 +4,4 @@ kind: Kustomization resources: - configmap.yaml - ipaddresspool.yaml + - l2advertisement.yaml diff --git a/metallb/l2advertisement.yaml b/metallb/l2advertisement.yaml new file mode 100644 index 0000000..1b6e460 --- /dev/null +++ b/metallb/l2advertisement.yaml @@ -0,0 +1,8 @@ +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + namespace: metallb-system + name: l2advertisement +spec: {} + #ipAddressPools: + # - default diff --git a/res/kustomization.yaml b/res/kustomization.yaml index b70a57f..65bb3a8 100644 --- a/res/kustomization.yaml +++ b/res/kustomization.yaml @@ -2,6 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ovh-config.yaml - flat-sc.yaml - redundant-sc.yaml