my storageclasses, not default

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-02-14 17:53:32 +01:00
parent 73abbcd468
commit 3d137ddb49
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,10 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn-fast
provisioner: driver.longhorn.io
parameters:
allowVolumeExpansion: "true"
numberOfReplicas: "2"
staleReplicaTimeout: "480" # 8 hours in minutes
diskSelector: "ssd"

View File

@ -0,0 +1,10 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn-spinny
provisioner: driver.longhorn.io
parameters:
allowVolumeExpansion: "true"
numberOfReplicas: "2"
staleReplicaTimeout: "480" # 8 hours in minutes
diskSelector: "spinny"

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn-storageclasses
namespace: argocd
spec:
destination:
namespace: longhorn-storageclasses
server: https://kubernetes.default.svc
project: infra
source:
path: apps-kustomized/longhorn-storageclasses
repoURL: https://git.martyn.berlin/martyn/infra4talos
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true