feat: add qbittorrent deployment, service, and persistent volume claim

This commit is contained in:
2025-04-18 05:29:06 +05:30
parent 9705392149
commit e9df5ac7cf
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: longhorn-qbittorrent
namespace: default
spec:
accessModes:
- ReadWriteMany
storageClassName: longhorn
resources:
requests:
storage: 500Gi

View File

@@ -0,0 +1,16 @@
---
apiVersion: v1
kind: Service
metadata:
name: qbittorrent-service
namespace: default
spec:
type: NodePort
selector:
app: qbittorrent
ports:
- port: 8080
targetPort: 8080
nodePort: 8080
protocol: TCP

View File

@@ -0,0 +1,41 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: qbittorrent
template:
metadata:
labels:
app: qbittorrent
spec:
containers:
- name: qbittorrent
image: linuxserver/qbittorrent:5.0.4
ports:
- containerPort: 8080
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Asia/Kolkata"
volumeMounts:
- name: downloads
mountPath: /downloads
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: longhorn-qbittorrent
- name: downloads
nfs:
server: 10.0.0.123
path: /merge/downloads