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