From 6029bbec5de3d3caccf015330a8f7a8a16f7e8cb Mon Sep 17 00:00:00 2001 From: V Date: Sun, 14 Dec 2025 19:23:52 +0000 Subject: [PATCH] Adding longhorn to AMD64 host --- .../storage/configs/dev-amd64/ingress-patch.yaml | 3 +++ .../storage/configs/dev-amd64/kustomization.yaml | 11 ++++++++++- .../storage/configs/dev-arm64/ingress-patch.yaml | 3 +++ .../storage/configs/dev-arm64/kustomization.yaml | 11 ++++++++++- .../storage/controllers/dev-amd64/kustomization.yaml | 1 + 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 components/storage/configs/dev-amd64/ingress-patch.yaml create mode 100644 components/storage/configs/dev-arm64/ingress-patch.yaml diff --git a/components/storage/configs/dev-amd64/ingress-patch.yaml b/components/storage/configs/dev-amd64/ingress-patch.yaml new file mode 100644 index 0000000..a744307 --- /dev/null +++ b/components/storage/configs/dev-amd64/ingress-patch.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/rules/0/host + value: longhorn-amd64.k8s.local \ No newline at end of file diff --git a/components/storage/configs/dev-amd64/kustomization.yaml b/components/storage/configs/dev-amd64/kustomization.yaml index 419dcad..133e853 100644 --- a/components/storage/configs/dev-amd64/kustomization.yaml +++ b/components/storage/configs/dev-amd64/kustomization.yaml @@ -1,3 +1,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -resources: [] \ No newline at end of file +resources: + - ../base/longhorn + +patches: + - target: + group: networking.k8s.io + version: v1 + kind: Ingress + name: longhorn-ingress + path: ingress-patch.yaml \ No newline at end of file diff --git a/components/storage/configs/dev-arm64/ingress-patch.yaml b/components/storage/configs/dev-arm64/ingress-patch.yaml new file mode 100644 index 0000000..1005f6d --- /dev/null +++ b/components/storage/configs/dev-arm64/ingress-patch.yaml @@ -0,0 +1,3 @@ +- op: replace + path: /spec/rules/0/host + value: longhorn-arm64.k8s.local \ No newline at end of file diff --git a/components/storage/configs/dev-arm64/kustomization.yaml b/components/storage/configs/dev-arm64/kustomization.yaml index 8e53125..4a92bd4 100644 --- a/components/storage/configs/dev-arm64/kustomization.yaml +++ b/components/storage/configs/dev-arm64/kustomization.yaml @@ -1,4 +1,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ../base/longhorn \ No newline at end of file + - ../base/longhorn + + +patches: + - target: + group: networking.k8s.io + version: v1 + kind: Ingress + name: longhorn-ingress + path: ingress-patch.yaml \ No newline at end of file diff --git a/components/storage/controllers/dev-amd64/kustomization.yaml b/components/storage/controllers/dev-amd64/kustomization.yaml index 77dbde1..756b251 100644 --- a/components/storage/controllers/dev-amd64/kustomization.yaml +++ b/components/storage/controllers/dev-amd64/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - ../base - ../base/nfs + - ../base/longhorn secretGenerator: - name: nfs-provisioner-config namespace: storage