# Define a StorageClass using Longhorn apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: config-storage provisioner: driver.longhorn.io reclaimPolicy: Retain # Keep the data even if PVC is deleted allowVolumeExpansion: true parameters: numberOfReplicas: "2" # Adjust based on your cluster size staleReplicaTimeout: "30" # Timeout for stale replicas (in minutes) fromBackup: "" # Optional: Use if restoring from a Longhorn backup volumeBindingMode: Immediate # Ensures volumes are bound immediately --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: jellyfin-config namespace: jellyfin spec: storageClassName: config-storage accessModes: - ReadWriteOnce # Default Longhorn mode resources: requests: storage: 10Gi