55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
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: transmission/downloads/complete/
|
|
- name: ssd
|
|
mountPath: /data/db
|
|
subPath: configs/rdtDB
|
|
- name: rclone-data
|
|
mountPath: /data/rclone/__all__
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 6500
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
timeoutSeconds: 30
|
|
failureThreshold: 3
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: hdd
|
|
persistentVolumeClaim:
|
|
claimName: nfs-hdd-pvc
|
|
- name: ssd
|
|
persistentVolumeClaim:
|
|
claimName: nfs-ssd-configs-pvc
|
|
- name: rclone-data
|
|
hostPath:
|
|
path: /mnt/zurg/__all__/
|
|
type: Directory
|