90 lines
1.8 KiB
YAML
90 lines
1.8 KiB
YAML
|
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
|
||
|
containerPort: 58846
|
||
|
- name: torrent-tcp
|
||
|
containerPort: 6881
|
||
|
hostPort: 6881
|
||
|
protocol: TCP
|
||
|
- name: torrent-udp
|
||
|
containerPort: 6881
|
||
|
hostPort: 6881
|
||
|
protocol: UDP
|
||
|
resources:
|
||
|
requests:
|
||
|
cpu: 1500m
|
||
|
memory: 250Mi
|
||
|
limits:
|
||
|
cpu: 1500m
|
||
|
memory: 250Mi
|
||
|
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:
|
||
|
app.kubernetes.io/name: gitea
|
||
|
spec:
|
||
|
type: NodePort
|
||
|
selector:
|
||
|
app.kubernetes.io/name: gitea
|
||
|
ports:
|
||
|
- port: 58846
|
||
|
targetPort: deluge-daemon
|
||
|
nodePort: 31000
|