From e9df5ac7cf2276103968cf35c25eb8b8098db3ad Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 18 Apr 2025 05:29:06 +0530 Subject: [PATCH] feat: add qbittorrent deployment, service, and persistent volume claim --- cluster/apps/qbittorrent/qbittorrent-pvc.yml | 13 +++++++ cluster/apps/qbittorrent/qbittorrent-svc.yml | 16 ++++++++ cluster/apps/qbittorrent/qbittorrent.yml | 41 ++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 cluster/apps/qbittorrent/qbittorrent-pvc.yml create mode 100644 cluster/apps/qbittorrent/qbittorrent-svc.yml create mode 100644 cluster/apps/qbittorrent/qbittorrent.yml diff --git a/cluster/apps/qbittorrent/qbittorrent-pvc.yml b/cluster/apps/qbittorrent/qbittorrent-pvc.yml new file mode 100644 index 0000000..25a15ee --- /dev/null +++ b/cluster/apps/qbittorrent/qbittorrent-pvc.yml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: longhorn-qbittorrent + namespace: default +spec: + accessModes: + - ReadWriteMany + storageClassName: longhorn + resources: + requests: + storage: 500Gi diff --git a/cluster/apps/qbittorrent/qbittorrent-svc.yml b/cluster/apps/qbittorrent/qbittorrent-svc.yml new file mode 100644 index 0000000..78e35bd --- /dev/null +++ b/cluster/apps/qbittorrent/qbittorrent-svc.yml @@ -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 + diff --git a/cluster/apps/qbittorrent/qbittorrent.yml b/cluster/apps/qbittorrent/qbittorrent.yml new file mode 100644 index 0000000..1b45e09 --- /dev/null +++ b/cluster/apps/qbittorrent/qbittorrent.yml @@ -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