From abe02bbe5eb23749909df7058a6f7fe0c5c68a17 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Fri, 17 Jan 2025 03:20:30 +0300 Subject: [PATCH] zurg mount & rdtclient --- .../zurg-rdclient/deployment.yml | 138 ++++++++++++++++++ .../download-client/zurg-rdclient/service.yml | 33 +++++ 2 files changed, 171 insertions(+) create mode 100644 alaskarTV/download-client/zurg-rdclient/deployment.yml create mode 100644 alaskarTV/download-client/zurg-rdclient/service.yml diff --git a/alaskarTV/download-client/zurg-rdclient/deployment.yml b/alaskarTV/download-client/zurg-rdclient/deployment.yml new file mode 100644 index 0000000..5aa0207 --- /dev/null +++ b/alaskarTV/download-client/zurg-rdclient/deployment.yml @@ -0,0 +1,138 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: zurg +spec: + replicas: 1 + selector: + matchLabels: + app: zurg + template: + metadata: + labels: + app: zurg + spec: + containers: + - name: zurg + image: ghcr.io/debridmediamanager/zurg-testing:latest + ports: + - containerPort: 9999 + volumeMounts: + - name: ssd + mountPath: /app/jellyfin_update.sh + subPath: configs/zurg/app/jellyfin_update.sh + - name: ssd + mountPath: /app/config.yml + subPath: configs/zurg/app/config.yml + - name: rclone-data + mountPath: /app/data + volumes: + - name: ssd + persistentVolumeClaim: + claimName: nfs-ssd-pvc + - name: rclone-data + persistentVolumeClaim: + claimName: rclone-data-pvc + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: rclone +spec: + replicas: 1 + selector: + matchLabels: + app: rclone + template: + metadata: + labels: + app: rclone + spec: + containers: + - name: rclone + image: rclone/rclone:latest + env: + - name: TZ + value: Asia/Kuwait + securityContext: + capabilities: + add: ["SYS_ADMIN"] + privileged: true + volumeMounts: + - name: rclone-data + mountPath: /data + - name: ssd + mountPath: /config/rclone/rclone.conf + subPath: configs/rclone/rclone.conf + - name: dev-fuse + mountPath: /dev/fuse + command: ["rclone", "mount", "zurg:", "/data", "--allow-other", "--umask=0022", "--uid=1000", "--gid=1000", "--dir-perms=0775", "--file-perms=0664", "--poll-interval", "30s", "--allow-non-empty", "--allow-root", "--vfs-cache-mode", "full", "--dir-cache-time", "10s", "--cache-dir", "/SSD/media/configs/rclone/cache"] + volumes: + - name: dev-fuse + hostPath: + path: /dev/fuse + - name: ssd + persistentVolumeClaim: + claimName: nfs-ssd-pvc + - name: rclone-data + persistentVolumeClaim: + claimName: rclone-data-pvc + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: rdtclient +spec: + replicas: 1 + selector: + matchLabels: + app: rdtclient + template: + metadata: + labels: + app: rdtclient + spec: + containers: + - name: rdtclient + image: rogerfar/rdtclient + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: Asia/Kuwait + ports: + - containerPort: 6500 + volumeMounts: + - name: hdd + mountPath: /data/downloads + subPath: media/transmission/downloads/complete/ + - name: ssd + mountPath: /data/db + subPath: configs/rdtDB + - name: rclone-data + mountPath: /data/rclone/__all__ + subPath: __all__ + livenessProbe: + httpGet: + path: / + port: 6500 + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 30 + failureThreshold: 3 + volumes: + - name: hdd + persistentVolumeClaim: + claimName: nfs-hdd-pvc + - name: ssd + persistentVolumeClaim: + claimName: nfs-ssd-configs-pvc + - name: rclone-data + persistentVolumeClaim: + claimName: rclone-data-pvc + diff --git a/alaskarTV/download-client/zurg-rdclient/service.yml b/alaskarTV/download-client/zurg-rdclient/service.yml new file mode 100644 index 0000000..6041973 --- /dev/null +++ b/alaskarTV/download-client/zurg-rdclient/service.yml @@ -0,0 +1,33 @@ +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: zurg + name: zurg +spec: + type: ClusterIP + ports: + - name: "9999" + port: 9999 + targetPort: 9999 + selector: + app: zurg + +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: rdtclient + name: rdtclient +spec: + type: ClusterIP + ports: + - name: "6500" + port: 6500 + targetPort: 6500 + selector: + app: rdtclient + +---