add media services
This commit is contained in:
12
deploy/deluge/deluge-config-pvc.yaml
Normal file
12
deploy/deluge/deluge-config-pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: deluge-config
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
48
deploy/deluge/deluge-deploy.yaml
Normal file
48
deploy/deluge/deluge-deploy.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: deluge
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: deluge
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: deluge
|
||||
spec:
|
||||
containers:
|
||||
- name: deluge
|
||||
image: lscr.io/linuxserver/deluge:latest
|
||||
ports:
|
||||
- containerPort: 8112
|
||||
protocol: TCP
|
||||
- containerPort: 6881
|
||||
protocol: TCP
|
||||
- containerPort: 6881
|
||||
protocol: UDP
|
||||
- containerPort: 58846
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: Etc/UTC
|
||||
- name: DELUGE_LOGLEVEL
|
||||
value: "error"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: downloads
|
||||
mountPath: /downloads
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: deluge-config
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: deluge-downloads
|
24
deploy/deluge/deluge-ingress.yaml
Normal file
24
deploy/deluge/deluge-ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: deluge-ingress
|
||||
namespace: jellyfin
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- torrent.beatrice.wtf
|
||||
secretName: deluge-tls
|
||||
rules:
|
||||
- host: torrent.beatrice.wtf
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: deluge
|
||||
port:
|
||||
number: 80
|
25
deploy/deluge/deluge-svc.yaml
Normal file
25
deploy/deluge/deluge-svc.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: deluge
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
selector:
|
||||
app: deluge
|
||||
ports:
|
||||
- name: web
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8112
|
||||
- name: torrent-tcp
|
||||
protocol: TCP
|
||||
port: 6881
|
||||
targetPort: 6881
|
||||
- name: torrent-udp
|
||||
protocol: UDP
|
||||
port: 6881
|
||||
targetPort: 6881
|
||||
- name: daemon
|
||||
protocol: TCP
|
||||
port: 58846
|
||||
targetPort: 58846
|
Reference in New Issue
Block a user