2023-06-20 23:55:33 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: server
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: lscr.io/linuxserver/deluge
|
|
|
|
name: deluge
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 8112
|
|
|
|
- name: deluge-daemon
|
2023-09-22 05:20:57 +00:00
|
|
|
hostPort: 58846
|
2023-06-20 23:55:33 +00:00
|
|
|
containerPort: 58846
|
2023-10-20 03:48:14 +00:00
|
|
|
- name: torrent
|
2023-06-20 23:55:33 +00:00
|
|
|
containerPort: 6881
|
|
|
|
hostPort: 6881
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 1500m
|
2024-01-18 02:11:51 +00:00
|
|
|
memory: 500Mi
|
2023-06-20 23:55:33 +00:00
|
|
|
limits:
|
|
|
|
cpu: 1500m
|
2024-01-18 02:11:51 +00:00
|
|
|
memory: 500Mi
|
2023-06-20 23:55:33 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: deluge-config-pvc
|
|
|
|
mountPath: /config
|
|
|
|
volumes:
|
|
|
|
- name: deluge-config-pvc
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: deluge-config-pvc
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: deluge-config-pvc
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: webui
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 80
|
|
|
|
targetPort: http
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: daemon
|
|
|
|
labels:
|
2023-09-22 04:48:09 +00:00
|
|
|
app.kubernetes.io/name: deluge
|
2023-06-20 23:55:33 +00:00
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
selector:
|
2023-09-22 04:48:09 +00:00
|
|
|
app.kubernetes.io/name: deluge
|
2023-06-20 23:55:33 +00:00
|
|
|
ports:
|
|
|
|
- port: 58846
|
|
|
|
targetPort: deluge-daemon
|
2023-09-22 04:48:09 +00:00
|
|
|
nodePort: 31000
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: torrent
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: deluge
|
|
|
|
ports:
|
|
|
|
- port: 6881
|
|
|
|
targetPort: deluge-daemon
|
|
|
|
nodePort: 31001
|