diff --git a/infra/longhorn/longhorn-storageclass-static.yaml b/infra/longhorn/longhorn-storageclass-static.yaml new file mode 100644 index 0000000..054a75f --- /dev/null +++ b/infra/longhorn/longhorn-storageclass-static.yaml @@ -0,0 +1,11 @@ +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: longhorn-static +provisioner: driver.longhorn.io +allowVolumeExpansion: true +# Retain so a deleted PVC does not destroy the Longhorn volume +reclaimPolicy: Retain +volumeBindingMode: Immediate +parameters: + staleReplicaTimeout: "30"