Skip to content

Commit

Permalink
chore: add paperless export pv
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed May 15, 2024
1 parent 4429561 commit a57a8a5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 15 deletions.
42 changes: 39 additions & 3 deletions k8s/apps/documents/_pvs/paperless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
persistentVolumeReclaimPolicy: Retain
nfs:
server: ${NFS_SERVER}
path: /paperless-media
path: /paperless/media
mountOptions:
- nfsvers=4.1
- hard
Expand Down Expand Up @@ -48,7 +48,7 @@ spec:
persistentVolumeReclaimPolicy: Retain
nfs:
server: ${NFS_SERVER}
path: /paperless-consume
path: /paperless/consume
mountOptions:
- nfsvers=4.1
- hard
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
persistentVolumeReclaimPolicy: Retain
nfs:
server: ${NFS_SERVER}
path: /paperless-data
path: /paperless/data
mountOptions:
- nfsvers=4.1
- hard
Expand All @@ -106,3 +106,39 @@ spec:
requests:
storage: 1Mi
volumeName: paperless-data-share-pv
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: paperless-export-share-pv
spec:
capacity:
storage: 1Mi
storageClassName: nfs
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
nfs:
server: ${NFS_SERVER}
path: /paperless/export
mountOptions:
- nfsvers=4.1
- hard
- noatime
- nodiratime
- rsize=1048576
- wsize=1048576
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: paperless-export-share-pvc
namespace: documents
spec:
accessModes:
- ReadWriteMany
storageClassName: nfs
resources:
requests:
storage: 1Mi
volumeName: paperless-export-share-pv
24 changes: 12 additions & 12 deletions k8s/apps/documents/paperless/app/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,23 @@ spec:
data:
enabled: true
existingClaim: paperless-data-share-pvc
advancedMounts:
paperless:
app:
- path: /usr/src/paperless/data
globalMounts:
- path: /usr/src/paperless/data

media:
enabled: true
existingClaim: paperless-media-share-pvc
advancedMounts:
paperless:
app:
- path: /usr/src/paperless/media
globalMounts:
- path: /usr/src/paperless/media

consume:
enabled: true
existingClaim: paperless-consume-share-pvc
advancedMounts:
paperless:
app:
- path: /usr/src/paperless/consume
globalMounts:
- path: /usr/src/paperless/consume

export:
enabled: true
existingClaim: paperless-export-share-pvc
globalMounts:
- path: /usr/src/paperless/export

0 comments on commit a57a8a5

Please sign in to comment.