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
kind: Deployment
metadata:
@ -61,45 +60,3 @@ 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

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

View File

@ -1,18 +1,5 @@
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: {}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: mediaserver-prowlarr-ingressroute
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

@ -4,8 +4,16 @@ kind: Kustomization
namespace: mediaserver
resources:
- ./base/mediaserver-namespace.yaml
- ./base/mediaserver-pvcs.yaml
- ./base/mediaserver-deployment.yaml
- ./base/mediaserver-svc.yaml
- ./base/mediaserver-ingress.yaml
- ./base/mediaserver-namespace.yaml
- ./base/mediaserver-plex-deployment.yaml
- ./base/mediaserver-plex-ingress.yaml
- ./base/mediaserver-plex-pvc.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