Adopt Longhorn in gitops

This commit is contained in:
Danny Bessems 2025-02-08 09:59:37 +11:00
parent ee40f4a350
commit 82ed32b874
4 changed files with 30 additions and 24 deletions

View File

@ -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

View File

@ -1,5 +0,0 @@
defaultSettings:
defaultDataPath: /mnt/blockstorage/
ingress:
enabled: true
host: storage.spamasaurus.com

View File

@ -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

View File

@ -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