Merge pull request #278 from 3dwardch3ng/app/qBittorrent

fix qBittorrent volumes
This commit is contained in:
2024-06-24 14:15:02 +10:00
committed by GitHub
2 changed files with 23 additions and 6 deletions

View File

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

View File

@@ -41,6 +41,11 @@ spec:
persistentVolumeReclaimPolicy: Retain persistentVolumeReclaimPolicy: Retain
local: local:
path: "/mnt/nfs/AppData/qbittorrent/download" path: "/mnt/nfs/AppData/qbittorrent/download"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: qbittorrent-download-pvc
namespace: qbittorrent
nodeAffinity: nodeAffinity:
required: required:
nodeSelectorTerms: nodeSelectorTerms:
@@ -48,4 +53,20 @@ spec:
- key: kubernetes.io/hostname - key: kubernetes.io/hostname
operator: In operator: In
values: 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