# RWX (ReadWriteMany) StorageClass for shared volumes
# Enables multiple pods to mount the same PVC simultaneously
# Used for: claudebox-claude-config (shared Claude auth credentials)
#
# Prerequisites:
#   - Longhorn 1.4.0+ with NFS support
#   - Verify: kubectl get settings -n longhorn-system | grep -i rwx
#
# If RWX is not available, enable it:
#   kubectl patch -n longhorn-system settings rwx-volume-fast-failover --type merge -p '{"value":"true"}'

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: longhorn-rwx
  labels:
    app.kubernetes.io/part-of: rdev
provisioner: driver.longhorn.io
allowVolumeExpansion: true
reclaimPolicy: Retain
parameters:
  numberOfReplicas: "2"
  staleReplicaTimeout: "30"
  nfsOptions: "vers=4.1,noresvport"
