mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
deluge
This commit is contained in:
8
media/deluge/config.yaml
Normal file
8
media/deluge/config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: deluge-config
|
||||
namespace: media
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
49
media/deluge/deployment.yaml
Normal file
49
media/deluge/deployment.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: deluge
|
||||
namespace: media
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: deluge
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: deluge
|
||||
spec:
|
||||
containers:
|
||||
- name: deluge
|
||||
image: lscr.io/linuxserver/deluge:latest
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: deluge-config
|
||||
optional: false
|
||||
ports:
|
||||
- containerPort: 8112
|
||||
name: http
|
||||
protocol: TCP
|
||||
- containerPort: 6881
|
||||
name: udp
|
||||
protocol: UDP
|
||||
- containerPort: 6881
|
||||
name: tcp
|
||||
protocol: TCP
|
||||
- containerPort: 58846
|
||||
name: thinclient
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- mountPath: /data/downloads
|
||||
name: data
|
||||
subPath: downloads
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: deluge-config
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: media-data
|
||||
|
||||
|
||||
12
media/deluge/dns-endpoint.yaml
Normal file
12
media/deluge/dns-endpoint.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: externaldns.k8s.io/v1alpha1
|
||||
kind: DNSEndpoint
|
||||
metadata:
|
||||
name: deluge.michaelthomson.dev
|
||||
namespace: media
|
||||
spec:
|
||||
endpoints:
|
||||
- dnsName: deluge.michaelthomson.dev
|
||||
recordTTL: 180
|
||||
recordType: CNAME
|
||||
targets:
|
||||
- server.michaelthomson.dev
|
||||
25
media/deluge/ingress.yaml
Normal file
25
media/deluge/ingress.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: deluge
|
||||
namespace: media
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
rules:
|
||||
- host: deluge.michaelthomson.dev
|
||||
http:
|
||||
paths:
|
||||
- pathType: ImplementationSpecific
|
||||
path: /
|
||||
backend:
|
||||
service:
|
||||
name: deluge
|
||||
port:
|
||||
name: http
|
||||
tls:
|
||||
- hosts:
|
||||
- deluge.michaelthomson.dev
|
||||
secretName: letsencrypt-wildcard-cert-michaelthomson.dev
|
||||
12
media/deluge/pvc-config.yaml
Normal file
12
media/deluge/pvc-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: deluge-config
|
||||
namespace: media
|
||||
spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: longhorn
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
12
media/deluge/service.yaml
Normal file
12
media/deluge/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: deluge
|
||||
namespace: media
|
||||
spec:
|
||||
selector:
|
||||
app: deluge
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: http
|
||||
name: http
|
||||
Reference in New Issue
Block a user