fix: use RWO for single-replica Longhorn volumes

This commit is contained in:
2026-10-02 13:56:32 +00:00 Unverified
parent 00fe2bb2a6
commit cccecab81f
5 changed files with 36 additions and 4 deletions
+3 -1
View File
@@ -1286,7 +1286,9 @@ export function volumesToPvc(
labels: LABELS,
},
spec: {
accessModes: ["ReadWriteMany"],
accessModes: [
policy?.replicaCount === 1 ? "ReadWriteOnce" : "ReadWriteMany",
],
storageClassName: policy
? toLonghornStorageClassName(policy)
: undefined,