This commit is contained in:
parent
0a626e7b0e
commit
895971c3c0
24
torrenter/blackhole-pv.yaml
Normal file
24
torrenter/blackhole-pv.yaml
Normal 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
|
||||
|
13
torrenter/blackhole-pvc.yaml
Normal file
13
torrenter/blackhole-pvc.yaml
Normal 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
|
||||
|
13
torrenter/deluge/deluge-config-pvc.yaml
Normal file
13
torrenter/deluge/deluge-config-pvc.yaml
Normal 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
|
||||
|
52
torrenter/deluge/deluge-deployment.yaml
Normal file
52
torrenter/deluge/deluge-deployment.yaml
Normal 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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user