1
0
Fork 0
home-stack-kustomize/kustomize/bases/deluge/deluge-deployment.yaml

101 lines
1.9 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
hostPort: 58846
containerPort: 58846
- name: torrent
containerPort: 6881
hostPort: 6881
resources:
requests:
cpu: 1500m
memory: 500Mi
limits:
cpu: 1500m
memory: 500Mi
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: deluge
spec:
type: NodePort
selector:
app.kubernetes.io/name: deluge
ports:
- port: 58846
targetPort: deluge-daemon
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