re structure mediaserver layout

This commit is contained in:
Mans Ziesel 2024-10-27 11:46:00 +01:00
parent 27e5034c14
commit 2a794cc641
10 changed files with 69 additions and 112 deletions

View File

@ -1,4 +1,3 @@
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -61,45 +60,3 @@ spec:
name: plex-config name: plex-config
- mountPath: /data - mountPath: /data
name: plex-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

View File

@ -0,0 +1,12 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: mediaserver-ingressroute
spec:
routes:
- match: Host(`plex.mziesel.nl`)
kind: Rule
services:
- name: mediaserver-plex
port: web
tls: {}

View File

@ -21,15 +21,3 @@ spec:
resources: resources:
requests: requests:
storage: 100Gi storage: 100Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mediaserver-prowlarr-config-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: mediaserver-plex
spec:
ports:
- name: web
port: 80
targetPort: plex
selector:
app: plexserver

View File

@ -1,37 +1,34 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: rdtclient name: prowlarr
labels: labels:
app: rdtclient app: prowlarr
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: rdtclient app: prowlarr
template: template:
metadata: metadata:
labels: labels:
app: rdtclient app: prowlarr
annotations: annotations:
spec: spec:
volumes: volumes:
- name: rdtclient-data - name: prowlarr-config
persistentVolumeClaim: persistentVolumeClaim:
claimName: mediaserver-rdtclient-data-pvc claimName: mediaserver-prowlarr-config-pvc
- name: rdtclient-downloads
persistentVolumeClaim:
claimName: mediaserver-rdtclient-downloads-pvc
containers: containers:
- name: rdtclient - name: prowlarr
image: rogerfar/rdtclient image: ghcr.io/hotio/prowlarr:nightly@sha256:a27cfcead7f6debe0e2e3409690ff2000076f902b38213555ad2716902823d45
resources: resources:
requests: requests:
cpu: 1 cpu: 1
memory: 512Mi memory: 512Mi
ports: ports:
- name: web - name: web
containerPort: 6500 containerPort: 9696
env: env:
- name: PUID - name: PUID
value: "1000" value: "1000"
@ -40,7 +37,5 @@ spec:
- name: TZ - name: TZ
value: Europe/Amsterdam value: Europe/Amsterdam
volumeMounts: volumeMounts:
- mountPath: /data/downloads - mountPath: /config
name: rdtclient-downloads name: prowlarr-config
- mountPath: /data/db
name: rdtclient-data

View File

@ -1,18 +1,5 @@
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata:
name: mediaserver-ingressroute
spec:
routes:
- match: Host(`plex.mziesel.nl`)
kind: Rule
services:
- name: mediaserver-plex
port: web
tls: {}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata: metadata:
name: mediaserver-prowlarr-ingressroute name: mediaserver-prowlarr-ingressroute
spec: spec:

View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mediaserver-prowlarr-config-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: mediaserver-prowlarr
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: prowlarr

View File

@ -1,23 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: mediaserver-plex
spec:
ports:
- name: web
port: 80
targetPort: plex
selector:
app: plexserver
---
apiVersion: v1
kind: Service
metadata:
name: mediaserver-prowlarr
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: prowlarr

View File

@ -5,7 +5,15 @@ namespace: mediaserver
resources: resources:
- ./base/mediaserver-namespace.yaml - ./base/mediaserver-namespace.yaml
- ./base/mediaserver-pvcs.yaml - ./base/mediaserver-plex-deployment.yaml
- ./base/mediaserver-deployment.yaml - ./base/mediaserver-plex-ingress.yaml
- ./base/mediaserver-svc.yaml - ./base/mediaserver-plex-pvc.yaml
- ./base/mediaserver-ingress.yaml - ./base/mediaserver-plex-svc.yaml
- ./base/mediaserver-prowlarr-deployment.yaml
- ./base/mediaserver-prowlarr-ingress.yaml
- ./base/mediaserver-prowlarr-pvc.yaml
- ./base/mediaserver-prowlarr-svc.yaml
- ./base/mediaserver-rdtclient-deployment.yaml
- ./base/mediaserver-rdtclient-ingress.yaml
- ./base/mediaserver-rdtclient-pvc.yaml
- ./base/mediaserver-rdtclient-svc.yaml