From b613e656bff3e75f6963dfe97e594916c6c02f38 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 27 Oct 2024 11:20:16 +0100 Subject: [PATCH] add prowlarr --- mediaserver/base/mediaserver-deployment.yaml | 42 ++++++++++++++++++++ mediaserver/base/mediaserver-ingress.yaml | 15 ++++++- mediaserver/base/mediaserver-svc.yaml | 14 ++++++- 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/mediaserver/base/mediaserver-deployment.yaml b/mediaserver/base/mediaserver-deployment.yaml index caee668..34eb6e9 100644 --- a/mediaserver/base/mediaserver-deployment.yaml +++ b/mediaserver/base/mediaserver-deployment.yaml @@ -61,3 +61,45 @@ spec: name: plex-config - mountPath: /data name: plex-data +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: prowlarr + labels: + app: prowlarr +spec: + replicas: 1 + selector: + matchLabels: + app: prowlarr + template: + metadata: + labels: + app: prowlarr + annotations: + spec: + volumes: + - name: prowlarr-config + persistentVolumeClaim: + claimName: mediaserver-prowlarr-config-pvc + containers: + - name: prowlarr + image: ghcr.io/hotio/prowlarr:nightly@sha256:a27cfcead7f6debe0e2e3409690ff2000076f902b38213555ad2716902823d45 + resources: + requests: + cpu: 1 + memory: 512Mi + ports: + - name: web + containerPort: 9696 + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: Europe/Amsterdam + volumeMounts: + - mountPath: /config + name: prowlarr-config diff --git a/mediaserver/base/mediaserver-ingress.yaml b/mediaserver/base/mediaserver-ingress.yaml index e6944f6..aebea0d 100644 --- a/mediaserver/base/mediaserver-ingress.yaml +++ b/mediaserver/base/mediaserver-ingress.yaml @@ -7,6 +7,19 @@ spec: - match: Host(`plex.mziesel.nl`) kind: Rule services: - - name: mediaserver + - name: mediaserver-plex + port: web + tls: {} +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: mediaserver-prowlarr-ingressroute +spec: + routes: + - match: Host(`prowlarr.k8s.mziesel.nl`) + kind: Rule + services: + - name: mediaserver-prowlarr port: web tls: {} diff --git a/mediaserver/base/mediaserver-svc.yaml b/mediaserver/base/mediaserver-svc.yaml index a990850..384b1f7 100644 --- a/mediaserver/base/mediaserver-svc.yaml +++ b/mediaserver/base/mediaserver-svc.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: mediaserver + name: mediaserver-plex spec: ports: - name: web @@ -9,3 +9,15 @@ spec: targetPort: plex selector: app: plexserver +--- +apiVersion: v1 +kind: Service +metadata: + name: mediaserver-prowlarr +spec: + ports: + - name: web + port: 80 + targetPort: web + selector: + app: prowlarr