fix qBittorrent volumes

This commit is contained in:
2024-06-24 14:14:26 +10:00
parent 516f304dbe
commit ff57154064
2 changed files with 23 additions and 6 deletions

View File

@@ -27,14 +27,10 @@ spec:
persistence:
volumeName: "qbittorrent-config"
volumeMounts:
- name: qbittorrent-download
- name: qbittorrent-download-pvc
mountPath: /download
volumes:
- name: qbittorrent-config
hostPath:
path: /mnt/nfs/AppData/qbittorrent/config
type: Directory
- name: qbittorrent-download
hostPath:
path: /mnt/nfs/AppData/qbittorrent/download
type: Directory

View File

@@ -41,6 +41,11 @@ spec:
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/qbittorrent/download"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: qbittorrent-download-pvc
namespace: qbittorrent
nodeAffinity:
required:
nodeSelectorTerms:
@@ -48,4 +53,20 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-download-pvc
namespace: qbittorrent
labels:
name: qbittorrent-download-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 64Gi