Skip to content

Commit

Permalink
refactor: move plex media libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
zebernst committed Nov 2, 2024
1 parent 7b8ced0 commit d4cbd7e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kubernetes/apps/default/cross-seed/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
module.exports = {
action: "inject",
apiKey: "{{.CROSS_SEED_API_KEY}}",
dataDirs: ["/media/plex/TV Shows/Source", "/media/plex/Movies/Source", "/media/downloads/qbittorrent/"],
dataDirs: ["/media/movies", "/media/tv", "/media/downloads/qbittorrent/seeding/"],
delay: 30,
duplicateCategories: false,
flatLinking: false,
Expand Down
17 changes: 15 additions & 2 deletions kubernetes/apps/default/plex/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,28 @@ spec:
type: emptyDir
globalMounts:
- path: /config/Library/Application Support/Plex Media Server/Logs

tmp:
type: emptyDir
transcode:
type: emptyDir
medium: Memory

media:
type: nfs
server: nas.lab.home.arpa
path: /volume1/media/plex
path: /volume1/media
globalMounts:
- path: /media
- path: /media/tv
subPath: tv
readOnly: true
- path: /media/movies
subPath: movies
readOnly: true
- path: /media/plex/posters
subPath: posters
readOnly: true
optimized:
existingClaim: plex-optimized-media
globalMounts:
- path: /media/plex/optimized
11 changes: 11 additions & 0 deletions kubernetes/apps/default/plex/app/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ spec:
requests:
storage: 100Gi
storageClassName: iscsi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: plex-optimized-media
spec:
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 250Gi
storageClassName: iscsi

0 comments on commit d4cbd7e

Please sign in to comment.