diff --git a/components/storage/configs/base/longhorn/ingress.yaml b/components/storage/configs/base/longhorn/ingress.yaml new file mode 100644 index 0000000..46b0bf3 --- /dev/null +++ b/components/storage/configs/base/longhorn/ingress.yaml @@ -0,0 +1,9 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: longhorn-ingress + namespace: stprage +spec: + ingressClassName: nginx + rules: + - host: longhorn.k8s.local \ No newline at end of file diff --git a/components/storage/configs/base/longhorn/kustomization.yaml b/components/storage/configs/base/longhorn/kustomization.yaml new file mode 100644 index 0000000..c90d13e --- /dev/null +++ b/components/storage/configs/base/longhorn/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: storage +resources: + - ingress.yaml diff --git a/components/storage/configs/dev-arm64/kustomization.yaml b/components/storage/configs/dev-arm64/kustomization.yaml index 419dcad..351f975 100644 --- a/components/storage/configs/dev-arm64/kustomization.yaml +++ b/components/storage/configs/dev-arm64/kustomization.yaml @@ -1,3 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -resources: [] \ No newline at end of file +resources: [] + # - ../base/longhorn \ No newline at end of file diff --git a/components/storage/controllers/base/longhorn/kustomization.yaml b/components/storage/controllers/base/longhorn/kustomization.yaml new file mode 100644 index 0000000..502f4c0 --- /dev/null +++ b/components/storage/controllers/base/longhorn/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: storage +resources: + - longhorn.yaml diff --git a/components/storage/controllers/base/longhorn/longhorn.yaml b/components/storage/controllers/base/longhorn/longhorn.yaml new file mode 100644 index 0000000..db02b38 --- /dev/null +++ b/components/storage/controllers/base/longhorn/longhorn.yaml @@ -0,0 +1,37 @@ +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: longhorn + namespace: storage +spec: + interval: 1h + url: https://charts.longhorn.io +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: longhorn + namespace: storage +spec: + serviceAccountName: flux + interval: 15m + timeout: 1h + chart: + spec: + chart: longhorn + version: "v1.10.1 " # {"$imagepolicy": "flux-system:longhorn:tag"} + sourceRef: + kind: HelmRepository + name: longhorn + interval: 5m + install: + crds: Create + timeout: 9m + remediation: + retries: 3 + upgrade: + crds: CreateReplace + timeout: 9m + remediation: + retries: 3 + diff --git a/components/storage/controllers/dev-arm64/kustomization.yaml b/components/storage/controllers/dev-arm64/kustomization.yaml index 77dbde1..756b251 100644 --- a/components/storage/controllers/dev-arm64/kustomization.yaml +++ b/components/storage/controllers/dev-arm64/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - ../base - ../base/nfs + - ../base/longhorn secretGenerator: - name: nfs-provisioner-config namespace: storage