From 0a626e7b0e45544eabb50f9f77e7a4ac0b868558 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sun, 15 Oct 2023 11:37:15 -0400 Subject: [PATCH] Add prowlarr --- torrenter/prowlarr/prowlarr-deployment.yaml | 37 +++++++++++++++++++++ torrenter/prowlarr/prowlarr-pvc.yaml | 13 ++++++++ torrenter/torrenter-service.yaml | 13 ++++++++ 3 files changed, 63 insertions(+) create mode 100644 torrenter/prowlarr/prowlarr-deployment.yaml create mode 100644 torrenter/prowlarr/prowlarr-pvc.yaml create mode 100644 torrenter/torrenter-service.yaml diff --git a/torrenter/prowlarr/prowlarr-deployment.yaml b/torrenter/prowlarr/prowlarr-deployment.yaml new file mode 100644 index 0000000..2a590b4 --- /dev/null +++ b/torrenter/prowlarr/prowlarr-deployment.yaml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: prowlarr + namespace: torrent-ns + labels: + app: prowlarr +spec: + replicas: 1 + selector: + matchLabels: + app: torrenter-apps + template: + metadata: + labels: + app: torrenter-apps + spec: + containers: + - name: prowlarr + image: lscr.io/linuxserver/prowlarr:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "Etc/UTC" + ports: + - containerPort: 9696 + volumeMounts: + - name: prowlarr-data + mountPath: /config + volumes: + - name: prowlarr-data + persistentVolumeClaim: + claimName: prowlarr-pvc + diff --git a/torrenter/prowlarr/prowlarr-pvc.yaml b/torrenter/prowlarr/prowlarr-pvc.yaml new file mode 100644 index 0000000..b2daf01 --- /dev/null +++ b/torrenter/prowlarr/prowlarr-pvc.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: prowlarr-pvc + namespace: torrent-ns +spec: + accessModes: + - ReadWriteOnce + storageClassName: longhorn + resources: + requests: + storage: 1Gi + diff --git a/torrenter/torrenter-service.yaml b/torrenter/torrenter-service.yaml new file mode 100644 index 0000000..382a9a1 --- /dev/null +++ b/torrenter/torrenter-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: torrenter-service + namespace: torrent-ns +spec: + type: LoadBalancer + ports: + - port: 9696 + targetPort: 9696 + selector: + app: torrenter-apps +