22 lines
850 B
YAML
22 lines
850 B
YAML
# Longhorn StorageClass - single unified storage class for the entire cluster
|
|||
|
|
# Replaces: longhorn-wffc, longhorn-kafka, longhorn-static (all deprecated)
|
||
|
|
apiVersion: storage.k8s.io/v1
|
||
|
|
kind: StorageClass
|
||
|
|
metadata:
|
||
|
|
name: longhorn
|
||
|
|
annotations:
|
||
|
|
storageclass.kubernetes.io/is-default-class: "true"
|
||
|
|
description: "Longhorn distributed storage - 3 replicas, WaitForFirstConsumer"
|
||
|
|
provisioner: driver.longhorn.io
|
||
|
|
allowVolumeExpansion: true
|
||
|
|
reclaimPolicy: Delete
|
||
|
|
volumeBindingMode: WaitForFirstConsumer # Wait for pod scheduling before binding
|
||
|
|
parameters:
|
||
|
|
numberOfReplicas: "3" # HA across all 3 nodes
|
||
|
|
staleReplicaTimeout: "30"
|
||
|
|
fromBackup: ""
|
||
|
|
dataLocality: "best-effort" # Prefer local replica when possible
|
||
|
|
fsType: "ext4"
|
||
|
|
disableRevisionCounter: "true" # Performance optimization
|
||
|
|
unmapMarkSnapChainRemoved: "ignored"
|