Add deluge
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-10-15 12:10:40 -04:00
parent 0a626e7b0e
commit 895971c3c0
5 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,24 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: blackhole-pv
namespace: torrent-ns
spec:
storageClassName: local-storage
capacity:
storage: 1000Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
local:
path: /Main/Black Hole
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- gluttony

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: blackhole-pvc
namespace: torrent-ns
spec:
storageClassName: local-storage
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1000Gi

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: deluge-config-pvc
namespace: torrent-ns
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: deluge
namespace: torrent-ns
spec:
replicas: 1
selector:
matchLabels:
app: torrenter-apps
template:
metadata:
labels:
app: torrenter-apps
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- gluttony
containers:
- name: deluge
image: lscr.io/linuxserver/deluge:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Etc/UTC"
- name: DELUGE_LOGLEVEL
value: "error"
ports:
- containerPort: 8112
- containerPort: 6881
volumeMounts:
- name: config-volume
mountPath: /config
- name: downloads-volume
mountPath: /downloads
volumes:
- name: config-volume
persistentVolumeClaim:
claimName: deluge-config-pvc
- name: downloads-volume
persistentVolumeClaim:
claimName: blackhole-pvc

View File

@ -6,8 +6,18 @@ metadata:
spec:
type: LoadBalancer
ports:
# Prowlarr
- port: 9696
targetPort: 9696
# Deluge
- port: 8112
targetPort: 8112
- port: 6881
targetPort: 6881
# Sonarr
# Radarr
# Lidarr
# Bazarr
selector:
app: torrenter-apps