2026-08-25 11:11:37 -07:00
|
|
|
# Two volumes, deliberately separate storage classes:
|
|
|
|
|
#
|
|
|
|
|
# - media: the actual documents (originals + OCR'd archive PDFs + thumbnails).
|
2026-08-25 18:09:23 -07:00
|
|
|
# Lives on the cp-3 USB HDD, single replica (see
|
2026-08-25 19:23:07 -07:00
|
|
|
# k8s/infra/longhorn/longhorn-paperless-storageclass.yaml). Shares the disk
|
|
|
|
|
# with Immich's immich-media PVC (k8s/apps/immich/pvc.yaml, 2000Gi) - photo
|
|
|
|
|
# libraries grow much faster than scanned documents, so paperless gets the
|
|
|
|
|
# smaller 500Gi share.
|
2026-08-25 11:11:37 -07:00
|
|
|
# - data: the SQLite classification model + search index. Small (low GB),
|
|
|
|
|
# frequently rewritten, and disposable (rebuilds from the DB + media on
|
|
|
|
|
# next consume) - stays on the default 3-replica pool instead of the
|
|
|
|
|
# single-disk HDD.
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
|
|
|
|
name: paperless-media
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
storageClassName: longhorn-paperless-media
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-08-25 19:23:07 -07:00
|
|
|
storage: 500Gi
|
2026-08-25 11:11:37 -07:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
|
|
|
|
name: paperless-data
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
storageClassName: longhorn
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
storage: 5Gi
|