Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
feat(syncthing): add external volume backed up by NAS
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Mar 31, 2024
1 parent 66f956d commit 7191f5f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions kubernetes/apps/default/syncthing/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yamllint disable rule:line-length
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone/persistentvolumeclaim.json
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: syncthing-nas
annotations:
nfs.io/storage-path: syncthing
spec:
storageClassName: nfs-client-kubernetes
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Mi # doesn't matter for NFS
# yamllint enable rule:line-length
5 changes: 5 additions & 0 deletions kubernetes/apps/default/syncthing/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ app-template:
existingClaim: syncthing-data
globalMounts:
- path: "/data"
external-nas:
type: persistentVolumeClaim
existingClaim: syncthing-nas
globalMounts:
- path: "/external/nas"
external-paperless-consume:
type: persistentVolumeClaim
existingClaim: paperless-ngx-consume
Expand Down

0 comments on commit 7191f5f

Please sign in to comment.