re structure mediaserver layout
This commit is contained in:
parent
27e5034c14
commit
2a794cc641
@ -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
|
12
mediaserver/base/mediaserver-plex-ingress.yaml
Normal file
12
mediaserver/base/mediaserver-plex-ingress.yaml
Normal 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: {}
|
@ -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
|
11
mediaserver/base/mediaserver-plex-svc.yaml
Normal file
11
mediaserver/base/mediaserver-plex-svc.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mediaserver-plex
|
||||
spec:
|
||||
ports:
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: plex
|
||||
selector:
|
||||
app: plexserver
|
@ -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
|
@ -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:
|
11
mediaserver/base/mediaserver-prowlarr-pvc.yaml
Normal file
11
mediaserver/base/mediaserver-prowlarr-pvc.yaml
Normal 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
|
11
mediaserver/base/mediaserver-prowlarr-svc.yaml
Normal file
11
mediaserver/base/mediaserver-prowlarr-svc.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mediaserver-prowlarr
|
||||
spec:
|
||||
ports:
|
||||
- name: web
|
||||
port: 80
|
||||
targetPort: web
|
||||
selector:
|
||||
app: prowlarr
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user