# Shared Claude credentials PVC
# v0.6 - All claudebox pods share this for auth
# Commands/skills/agents live in /workspace/.claude (per-project, in git)
#
# IMPORTANT: ReadWriteMany (RWX) requires Longhorn with NFS enabled.
# Verify with: kubectl get settings -n longhorn-system rwx-volume-fast-failover
# If RWX is not available, either:
#   1. Enable Longhorn NFS: kubectl apply -f longhorn-nfs-provisioner.yaml
#   2. Or use separate PVCs per pod (revert to per-project claude-config PVCs)
#
# RWX is needed because multiple claudebox pods mount this simultaneously
# to share Claude authentication credentials.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: claudebox-shared-claude-config
  namespace: rdev
  labels:
    app.kubernetes.io/name: claudebox
    app.kubernetes.io/part-of: rdev
    rdev.orchard9.ai/type: shared-config
spec:
  accessModes:
    - ReadWriteMany  # Multiple pods can mount simultaneously
  storageClassName: longhorn
  resources:
    requests:
      storage: 1Gi
