feat: rework media volumes

This commit is contained in:
auricom
2022-07-01 10:33:24 +02:00
parent c7122a0b9f
commit fed489be3a
7 changed files with 13 additions and 64 deletions

View File

@@ -40,16 +40,12 @@ spec:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/music
mountPath: /mnt/storage/music
qbittorrent-cache:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
usenet:
downloads:
enabled: true
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video/.usenet
mountPath: /mnt/storage/video/.usenet
path: /mnt/storage/downloads
mountPath: /mnt/storage/downloads
ingress:
main:

View File

@@ -34,10 +34,6 @@ spec:
config:
enabled: true
existingClaim: qbittorrent-config
qbittorrent-cache:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
downloads:
enabled: true
type: nfs

View File

@@ -13,40 +13,3 @@ spec:
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-cache
namespace: media
spec:
accessModes:
- ReadWriteOnce
storageClassName: local
volumeName: qbittorrent-cache
resources:
requests:
storage: 600Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: qbittorrent-cache
spec:
capacity:
storage: 600Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: local
local:
path: /local-path/qbittorrent-cache
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- k3s-worker3

View File

@@ -41,10 +41,6 @@ spec:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video
mountPath: /mnt/storage/video
qbittorrent-cache:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
ingress:
main:

View File

@@ -36,16 +36,12 @@ spec:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/home/claude/books
mountPath: /mnt/storage/home/claude/books
usenet:
downloads:
enabled: true
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video/.usenet
mountPath: /mnt/storage/video/.usenet
qbittorrent-cache:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
path: /mnt/storage/downloads
mountPath: /mnt/storage/downloads
service:
main:

View File

@@ -34,7 +34,13 @@ spec:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/downloads
mountPath: /mnt/storage/downloads
usenet:
music-usenet:
enabled: true
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/music/.usenet
mountPath: /mnt/storage/music/.usenet
video-usenet:
enabled: true
type: nfs
server: "${LOCAL_LAN_TRUENAS}"

View File

@@ -39,10 +39,6 @@ spec:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video
mountPath: /mnt/storage/video
qbittorrent-cache:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
ingress:
main: