feat: add longhorn storage and documentation
This commit is contained in:
23
infrastructure/longhorn-app.yaml
Normal file
23
infrastructure/longhorn-app.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.cloud-infra.prod.openmailserver.de/stabify/gitops.git
|
||||
targetRevision: HEAD
|
||||
path: infrastructure/longhorn
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: longhorn-system
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true # Important for CRDs
|
||||
20
infrastructure/longhorn-config-app.yaml
Normal file
20
infrastructure/longhorn-config-app.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: longhorn-config
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2" # Nach Longhorn Install
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.cloud-infra.prod.openmailserver.de/stabify/gitops.git
|
||||
targetRevision: HEAD
|
||||
path: infrastructure/longhorn/config
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: longhorn-system
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
10
infrastructure/longhorn/Chart.yaml
Normal file
10
infrastructure/longhorn/Chart.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v2
|
||||
name: longhorn-bootstrap
|
||||
description: Wrapper chart for Longhorn
|
||||
type: application
|
||||
version: 1.0.0
|
||||
appVersion: "1.0.0"
|
||||
dependencies:
|
||||
- name: longhorn
|
||||
version: 1.6.0 # Nutze eine stabile Version
|
||||
repository: https://charts.longhorn.io
|
||||
20
infrastructure/longhorn/values.yaml
Normal file
20
infrastructure/longhorn/values.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
longhorn:
|
||||
persistence:
|
||||
defaultClass: true
|
||||
defaultClassReplicaCount: 3
|
||||
|
||||
defaultSettings:
|
||||
createDefaultDiskLabeledNodes: true
|
||||
defaultDataPath: /var/lib/longhorn
|
||||
# Backup Target (für später mit SeaweedFS)
|
||||
# backupTarget: s3://longhorn-backups@us-east-1/
|
||||
# backupTargetCredentialSecret: longhorn-backup-secret
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
ingressClassName: traefik
|
||||
host: longhorn.stabify.de
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
tls: true
|
||||
tlsSecret: longhorn-tls
|
||||
Reference in New Issue
Block a user