From ae1f53b4bc08ffba52c16be243ce35cefb7add9c Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 2 Apr 2023 15:25:25 -0400 Subject: [PATCH] Remove podinfo, add metallb --- cluster/apps/kustomization.yaml | 2 +- .../helm.yaml => metallb/helm-release.yaml} | 18 ++++++++++-------- .../{podinfo => metallb}/kustomization.yaml | 3 ++- cluster/apps/metallb/metallb-static-ips.yaml | 15 +++++++++++++++ 4 files changed, 28 insertions(+), 10 deletions(-) rename cluster/apps/{podinfo/helm.yaml => metallb/helm-release.yaml} (58%) rename cluster/apps/{podinfo => metallb}/kustomization.yaml (60%) create mode 100644 cluster/apps/metallb/metallb-static-ips.yaml diff --git a/cluster/apps/kustomization.yaml b/cluster/apps/kustomization.yaml index 7ab6ed6..6e3d43e 100644 --- a/cluster/apps/kustomization.yaml +++ b/cluster/apps/kustomization.yaml @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./traefik -- ./podinfo \ No newline at end of file +- ./metallb diff --git a/cluster/apps/podinfo/helm.yaml b/cluster/apps/metallb/helm-release.yaml similarity index 58% rename from cluster/apps/podinfo/helm.yaml rename to cluster/apps/metallb/helm-release.yaml index 961584f..2fe7db7 100644 --- a/cluster/apps/podinfo/helm.yaml +++ b/cluster/apps/metallb/helm-release.yaml @@ -1,25 +1,27 @@ apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: HelmRepository metadata: - name: podinfo + name: metallb-charts namespace: flux-system spec: interval: 1m - url: https://stefanprodan.github.io/podinfo + url: https://metallb.github.io/metallb --- apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: - name: podinfo - namespace: default + name: metallb + namespace: metallb-system spec: interval: 5m chart: spec: - chart: podinfo - version: '4.0.x' + chart: metallb + version: 0.13.x sourceRef: kind: HelmRepository - name: podinfo + name: metallb-charts namespace: flux-system - interval: 1m \ No newline at end of file + values: + crds: + enabled: false diff --git a/cluster/apps/podinfo/kustomization.yaml b/cluster/apps/metallb/kustomization.yaml similarity index 60% rename from cluster/apps/podinfo/kustomization.yaml rename to cluster/apps/metallb/kustomization.yaml index 7d0a977..0f6b2d5 100644 --- a/cluster/apps/podinfo/kustomization.yaml +++ b/cluster/apps/metallb/kustomization.yaml @@ -1,4 +1,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- ./helm.yaml +- ./helm-release.yaml +- ./metallb-static-ips.yaml \ No newline at end of file diff --git a/cluster/apps/metallb/metallb-static-ips.yaml b/cluster/apps/metallb/metallb-static-ips.yaml new file mode 100644 index 0000000..e6e0e02 --- /dev/null +++ b/cluster/apps/metallb/metallb-static-ips.yaml @@ -0,0 +1,15 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: static-ip-range + namespace: metallb-system +spec: + addresses: + - 192.168.87.10-192.168.87.28 + autoAssign: true +--- +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: default + namespace: metallb-system