Prowlarr++;NZBHydra--;Moved Plex to dedicated host

This commit is contained in:
Danny Bessems 2021-07-14 16:31:04 +02:00
parent 033ddc61ca
commit ae88a84704
2 changed files with 32 additions and 134 deletions

View File

@ -8,70 +8,18 @@ spec:
- protocol: TCP
name: web
port: 32400
selector:
app: plex
---
apiVersion: apps/v1
kind: Deployment
apiVersion: v1
kind: Endpoints
metadata:
name: plex
namespace: pvr
labels:
app: plex
spec:
replicas: 1
selector:
matchLabels:
app: plex
strategy:
type: Recreate
template:
metadata:
labels:
app: plex
spec:
hostNetwork: true
containers:
- name: plex
image: bv11-cr01.bessems.eu/proxy/linuxserver/plex
ports:
- name: web
containerPort: 32400
env:
- name: VERSION
value: latest
volumeMounts:
- mountPath: /config
name: longhorn-plex-config
- mountPath: /preroll
name: flexvolsmb-plex-preroll
- mountPath: /data/series
name: flexvolsmb-pvr-series
- mountPath: /data/songs
name: flexvolsmb-pvr-songs
- mountPath: /data/movies
name: flexvolsmb-pvr-movies
- mountPath: /transcode
name: emptydir-plex-transcode
volumes:
- name: longhorn-plex-config
persistentVolumeClaim:
claimName: longhorn-plex-config
- name: flexvolsmb-plex-preroll
persistentVolumeClaim:
claimName: flexvolsmb-plex-preroll
- name: flexvolsmb-pvr-series
persistentVolumeClaim:
claimName: flexvolsmb-pvr-series
- name: flexvolsmb-pvr-songs
persistentVolumeClaim:
claimName: flexvolsmb-pvr-songs
- name: flexvolsmb-pvr-movies
persistentVolumeClaim:
claimName: flexvolsmb-pvr-movies
- name: emptydir-plex-transcode
emptyDir:
# medium: Memory
subsets:
- addresses:
- ip: 192.168.11.240
ports:
- port: 32400
name: web
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
@ -98,49 +46,4 @@ spec:
- main: '*.pvr.spamasaurus.com'
sans:
- 'pvr.spamasaurus.com'
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: longhorn-plex-config
namespace: pvr
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-plex-preroll
namespace: pvr
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-plex-preroll
flexVolume:
driver: mount/smb
secretRef:
name: smb-secret
options:
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8,cache=none
server: 192.168.11.225
share: /K3s.Volumes/plex/preroll
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-plex-preroll
namespace: pvr
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-plex-preroll
resources:
requests:
storage: 1Gi

View File

@ -1,57 +1,52 @@
apiVersion: v1
kind: Service
metadata:
name: nzbhydra
name: prowlarr
namespace: pvr
spec:
ports:
- protocol: TCP
name: web
port: 5076
port: 9696
selector:
app: nzbhydra
app: prowlarr
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nzbhydra
name: prowlarr
namespace: pvr
labels:
app: nzbhydra
app: prowlarr
spec:
replicas: 1
selector:
matchLabels:
app: nzbhydra
app: prowlarr
template:
metadata:
labels:
app: nzbhydra
app: prowlarr
spec:
containers:
- name: nzbhydra
image: bv11-cr01.bessems.eu/proxy/linuxserver/nzbhydra2
- name: prowlarr
image: bv11-cr01.bessems.eu/proxy/linuxserver/prowlarr:develop
imagePullPolicy: Always
ports:
- name: web
containerPort: 5076
containerPort: 9696
volumeMounts:
- mountPath: /config
name: flexvolsmb-nzbhydra-config
- mountPath: /downloads
name: smb-pvr-volatile
subPath: downloads
name: flexvolsmb-prowlarr-config
volumes:
- name: flexvolsmb-nzbhydra-config
- name: flexvolsmb-prowlarr-config
persistentVolumeClaim:
claimName: flexvolsmb-nzbhydra-config
- name: smb-pvr-volatile
persistentVolumeClaim:
claimName: smb-pvr-volatile
claimName: flexvolsmb-prowlarr-config
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nzbhydra
name: prowlarr
namespace: pvr
spec:
entryPoints:
@ -60,8 +55,8 @@ spec:
- match: Host(`index.pvr.spamasaurus.com`)
kind: Rule
services:
- name: nzbhydra
port: 5076
- name: prowlarr
port: 9696
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
@ -78,32 +73,32 @@ spec:
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-nzbhydra-config
name: flexvolsmb-prowlarr-config
namespace: pvr
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-nzbhydra-config
storageClassName: flexvolsmb-prowlarr-config
flexVolume:
driver: mount/smb
secretRef:
name: smb-secret
options:
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,iocharset=utf8,nobrl
server: 192.168.11.225
share: /K3s.Volumes/nzbhydra/config
share: /K3s.Volumes/prowlarr/config
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-nzbhydra-config
name: flexvolsmb-prowlarr-config
namespace: pvr
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-nzbhydra-config
storageClassName: flexvolsmb-prowlarr-config
resources:
requests:
storage: 1Gi