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}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/music path: /mnt/storage/music
mountPath: /mnt/storage/music mountPath: /mnt/storage/music
qbittorrent-cache: downloads:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
usenet:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video/.usenet path: /mnt/storage/downloads
mountPath: /mnt/storage/video/.usenet mountPath: /mnt/storage/downloads
ingress: ingress:
main: main:

View File

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

View File

@@ -13,40 +13,3 @@ spec:
resources: resources:
requests: requests:
storage: 1Gi 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}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video path: /mnt/storage/video
mountPath: /mnt/storage/video mountPath: /mnt/storage/video
qbittorrent-cache:
enabled: true
existingClaim: qbittorrent-cache
mountPath: "/downloads"
ingress: ingress:
main: main:

View File

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

View File

@@ -34,7 +34,13 @@ spec:
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/downloads path: /mnt/storage/downloads
mountPath: /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 enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"

View File

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