From f7d48608b8251f110261f41fc3330174b6dfd786 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 26 Aug 2024 10:39:52 +1000 Subject: [PATCH] Add infra app metallb-conf for cluster IPs --- .../metallb-conf/env/k3s-cluster/cluster-ip.yaml | 12 ++++++++++++ .../metallb-conf/env/k3s-cluster/config.json | 12 ++++++++++++ .../metallb-conf/env/k3s-cluster/kustomization.yaml | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml create mode 100644 infrastructures/metallb-conf/env/k3s-cluster/config.json create mode 100644 infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml diff --git a/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml b/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml new file mode 100644 index 0000000..384cb7c --- /dev/null +++ b/infrastructures/metallb-conf/env/k3s-cluster/cluster-ip.yaml @@ -0,0 +1,12 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: k3s-cluster + namespace: metallb-system +spec: + addresses: + - 192.168.10.100/32 + - 192.168.10.101/32 + - 192.168.10.102/32 + - 192.168.10.103/32 + - 192.168.10.120/32 \ No newline at end of file diff --git a/infrastructures/metallb-conf/env/k3s-cluster/config.json b/infrastructures/metallb-conf/env/k3s-cluster/config.json new file mode 100644 index 0000000..df65c2a --- /dev/null +++ b/infrastructures/metallb-conf/env/k3s-cluster/config.json @@ -0,0 +1,12 @@ +{ + "appName": "metallb-conf", + "userGivenName": "metallb-conf", + "namespace": "metallb", + "destNamespace": "metallb", + "destServer": "https://kubernetes.default.svc", + "srcPath": "infrastructures/metallb-conf/env/k3s-cluster", + "srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git", + "srcTargetRevision": "", + "labels": null, + "annotations": null +} \ No newline at end of file diff --git a/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml b/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml new file mode 100644 index 0000000..86354d2 --- /dev/null +++ b/infrastructures/metallb-conf/env/k3s-cluster/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./cluster-ip.yaml \ No newline at end of file