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

@@ -29,12 +29,3 @@ spec:
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

View File

@@ -23,3 +23,29 @@ spec:
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:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3