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

fix qBittorrent volumes
This commit is contained in:
2024-06-24 13:56:30 +10:00
committed by GitHub
2 changed files with 27 additions and 10 deletions

View File

@@ -28,13 +28,4 @@ spec:
volumeName: "qbittorrent-config"
volumeMounts:
- name: qbittorrent-download
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
mountPath: /download

View File

@@ -15,6 +15,32 @@ spec:
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/qbittorrent/config"
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: qbittorrent-download
namespace: qbittorrent
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 64Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/qbittorrent/download"
nodeAffinity:
required:
nodeSelectorTerms: