From c505924d2792b107bfbde36a47c63ba642ef6990 Mon Sep 17 00:00:00 2001 From: Jeffrey Smeets Date: Mon, 24 Aug 2026 00:43:26 +0200 Subject: [PATCH] longhorn: track the longhorn-static StorageClass in Git Longhorn auto-creates this class when missing and it is not backed by the longhorn-storageclass ConfigMap, so it had no source of truth. Set to Retain. --- infra/longhorn/longhorn-storageclass-static.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 infra/longhorn/longhorn-storageclass-static.yaml 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"