zurg mount & rdtclient
This commit is contained in:
parent
704af0d998
commit
abe02bbe5e
2 changed files with 171 additions and 0 deletions
138
alaskarTV/download-client/zurg-rdclient/deployment.yml
Normal file
138
alaskarTV/download-client/zurg-rdclient/deployment.yml
Normal file
|
@ -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
|
||||
|
33
alaskarTV/download-client/zurg-rdclient/service.yml
Normal file
33
alaskarTV/download-client/zurg-rdclient/service.yml
Normal file
|
@ -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
|
||||
|
||||
---
|
Loading…
Reference in a new issue