diff --git a/torrenter/blackhole-pv.yaml b/torrenter/blackhole-pv.yaml new file mode 100644 index 0000000..2f5bc67 --- /dev/null +++ b/torrenter/blackhole-pv.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: blackhole-pv + namespace: torrent-ns +spec: + storageClassName: local-storage + capacity: + storage: 1000Gi + volumeMode: Filesystem + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + local: + path: /Main/Black Hole + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - gluttony + diff --git a/torrenter/blackhole-pvc.yaml b/torrenter/blackhole-pvc.yaml new file mode 100644 index 0000000..10d3b08 --- /dev/null +++ b/torrenter/blackhole-pvc.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: blackhole-pvc + namespace: torrent-ns +spec: + storageClassName: local-storage + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1000Gi + diff --git a/torrenter/deluge/deluge-config-pvc.yaml b/torrenter/deluge/deluge-config-pvc.yaml new file mode 100644 index 0000000..627666b --- /dev/null +++ b/torrenter/deluge/deluge-config-pvc.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: deluge-config-pvc + namespace: torrent-ns +spec: + accessModes: + - ReadWriteOnce + storageClassName: longhorn + resources: + requests: + storage: 1Gi + diff --git a/torrenter/deluge/deluge-deployment.yaml b/torrenter/deluge/deluge-deployment.yaml new file mode 100644 index 0000000..8fb0040 --- /dev/null +++ b/torrenter/deluge/deluge-deployment.yaml @@ -0,0 +1,52 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: deluge + namespace: torrent-ns +spec: + replicas: 1 + selector: + matchLabels: + app: torrenter-apps + template: + metadata: + labels: + app: torrenter-apps + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - gluttony + containers: + - name: deluge + image: lscr.io/linuxserver/deluge:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "Etc/UTC" + - name: DELUGE_LOGLEVEL + value: "error" + ports: + - containerPort: 8112 + - containerPort: 6881 + volumeMounts: + - name: config-volume + mountPath: /config + - name: downloads-volume + mountPath: /downloads + volumes: + - name: config-volume + persistentVolumeClaim: + claimName: deluge-config-pvc + - name: downloads-volume + persistentVolumeClaim: + claimName: blackhole-pvc + diff --git a/torrenter/torrenter-service.yaml b/torrenter/torrenter-service.yaml index 382a9a1..ade6aac 100644 --- a/torrenter/torrenter-service.yaml +++ b/torrenter/torrenter-service.yaml @@ -6,8 +6,18 @@ metadata: spec: type: LoadBalancer ports: + # Prowlarr - port: 9696 targetPort: 9696 + # Deluge + - port: 8112 + targetPort: 8112 + - port: 6881 + targetPort: 6881 + # Sonarr + # Radarr + # Lidarr + # Bazarr selector: app: torrenter-apps