From 82ed32b87453ea1c80a77d57653cec4cec34e064 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Sat, 8 Feb 2025 09:59:37 +1100 Subject: [PATCH] Adopt Longhorn in gitops --- storage/Longhorn/application-longhorn.yaml | 23 ++++++++++++++++++++++ storage/Longhorn/chart-values.yml | 5 ----- storage/Longhorn/ingressRoute-Longhorn.yml | 19 ------------------ storage/Longhorn/values.yaml | 7 +++++++ 4 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 storage/Longhorn/application-longhorn.yaml delete mode 100644 storage/Longhorn/chart-values.yml delete mode 100644 storage/Longhorn/ingressRoute-Longhorn.yml create mode 100644 storage/Longhorn/values.yaml diff --git a/storage/Longhorn/application-longhorn.yaml b/storage/Longhorn/application-longhorn.yaml new file mode 100644 index 0000000..38bd5d6 --- /dev/null +++ b/storage/Longhorn/application-longhorn.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: longhorn + namespace: argo-cd +spec: + destination: + server: https://kubernetes.default.svc + namespace: longhorn-system + project: default + sources: + - repoURL: https://charts.longhorn.io + chart: longhorn + targetRevision: 1.8.0 + helm: + valueFiles: + - $values/storage/Longhorn/values.yaml + - repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog + targetRevision: master + ref: values +# - repoURL: https://github.com/djpbessems/Kubernetes.K3s.installLog +# targetRevision: master +# ref: values diff --git a/storage/Longhorn/chart-values.yml b/storage/Longhorn/chart-values.yml deleted file mode 100644 index a46fa49..0000000 --- a/storage/Longhorn/chart-values.yml +++ /dev/null @@ -1,5 +0,0 @@ -defaultSettings: - defaultDataPath: /mnt/blockstorage/ -ingress: - enabled: true - host: storage.spamasaurus.com diff --git a/storage/Longhorn/ingressRoute-Longhorn.yml b/storage/Longhorn/ingressRoute-Longhorn.yml deleted file mode 100644 index 19822d0..0000000 --- a/storage/Longhorn/ingressRoute-Longhorn.yml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute -metadata: - name: longhorn-dashboard - namespace: default -spec: - entryPoints: - - websecure - routes: - - match: Host(`storage.spamasaurus.com`) - kind: Rule - services: - - name: longhorn-frontend - port: 80 - namespace: longhorn-system - middlewares: - - name: 2fa-authentication@file - - name: security-headers@file - - name: compression@file diff --git a/storage/Longhorn/values.yaml b/storage/Longhorn/values.yaml new file mode 100644 index 0000000..26caf68 --- /dev/null +++ b/storage/Longhorn/values.yaml @@ -0,0 +1,7 @@ +defaultSettings: + defaultDataPath: /mnt/blockstorage/ +ingress: + enabled: true + host: storage.spamasaurus.com + annotations: + traefik.ingress.kubernetes.io/router.middlewares: 2fa-authentication@file,security-headers@file,compression@file