From f8d02295804148e69b720ac6d8defa2322292bb6 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Wed, 15 Jan 2025 05:46:40 -0600 Subject: [PATCH] add metallb --- infra/argocd/templates/metallb-system.yaml | 21 +++++++++++++++++++++ infra/metallb-system/Chart.yaml | 12 ++++++++++++ infra/metallb-system/templates/config.yaml | 17 +++++++++++++++++ infra/metallb-system/values.yaml | 0 4 files changed, 50 insertions(+) create mode 100644 infra/argocd/templates/metallb-system.yaml create mode 100644 infra/metallb-system/Chart.yaml create mode 100644 infra/metallb-system/templates/config.yaml create mode 100644 infra/metallb-system/values.yaml diff --git a/infra/argocd/templates/metallb-system.yaml b/infra/argocd/templates/metallb-system.yaml new file mode 100644 index 0000000..4bf695a --- /dev/null +++ b/infra/argocd/templates/metallb-system.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: metallb-system + namespace: argocd +spec: + project: default + source: + repoURL: https://gitlab.com/developerdurp/homelab.git + targetRevision: main + path: infra/metallb-system + destination: + namespace: metallb-system + name: in-cluster + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + diff --git a/infra/metallb-system/Chart.yaml b/infra/metallb-system/Chart.yaml new file mode 100644 index 0000000..4fc684f --- /dev/null +++ b/infra/metallb-system/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: metallb-system +description: A Helm chart for Kubernetes +type: application + +version: 0.1.0 +appVersion: "1.16.0" + +dependencies: +- name: metallb + repository: https://metallb.github.io/metallb + version: 0.14.9 diff --git a/infra/metallb-system/templates/config.yaml b/infra/metallb-system/templates/config.yaml new file mode 100644 index 0000000..e44285d --- /dev/null +++ b/infra/metallb-system/templates/config.yaml @@ -0,0 +1,17 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: cheap +spec: + addresses: + - 192.168.20.130-192.168.20.140 +--- +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: poop + namespace: metallb-system +spec: + ipAddressPools: + - cheap + diff --git a/infra/metallb-system/values.yaml b/infra/metallb-system/values.yaml new file mode 100644 index 0000000..e69de29