# k8s/storage-pvc.yaml
# ============================================
# Switchboard Core - Storage PVC
# ============================================
# Persistent storage for file attachments, extraction queue,
# and future knowledge base / compaction data.
#
# Requires ReadWriteMany (RWX) for multi-pod backend deployments.
# CephFS is recommended; NFS also works.
#
# Variables:
#   NAMESPACE        - deployment namespace
#   STORAGE_CLASS    - StorageClass name (e.g. "cephfs")
#   STORAGE_SIZE     - PVC size (e.g. "10Gi")
#   ENVIRONMENT      - deployment environment label
# ============================================
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: switchboard-storage${DEPLOY_SUFFIX}
  namespace: ${NAMESPACE}
  labels:
    app: switchboard
    component: storage
    env: ${ENVIRONMENT}
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: "${STORAGE_CLASS}"
  resources:
    requests:
      storage: ${STORAGE_SIZE}
