Refactor PVR services
This commit is contained in:
32
services/PVR/Prowlarr/deployment-prowlarr.yaml
Normal file
32
services/PVR/Prowlarr/deployment-prowlarr.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: prowlarr
|
||||
namespace: pvr
|
||||
labels:
|
||||
app: prowlarr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: prowlarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: prowlarr
|
||||
spec:
|
||||
containers:
|
||||
- name: prowlarr
|
||||
# image: bv11-cr01.bessems.eu/proxy/linuxserver/prowlarr:develop
|
||||
image: linuxserver/prowlarr:develop
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 9696
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: flexvolsmb-prowlarr-config
|
||||
volumes:
|
||||
- name: flexvolsmb-prowlarr-config
|
||||
persistentVolumeClaim:
|
||||
claimName: flexvolsmb-prowlarr-config
|
18
services/PVR/Prowlarr/ingressroute-prowlarr.yaml
Normal file
18
services/PVR/Prowlarr/ingressroute-prowlarr.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: prowlarr
|
||||
namespace: pvr
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`index.pvr.spamasaurus.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: prowlarr
|
||||
port: 9696
|
||||
middlewares:
|
||||
- name: 2fa-authentication@file
|
||||
- name: security-headers@file
|
||||
- name: compression@file
|
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: flexvolsmb-prowlarr-config
|
||||
namespace: pvr
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: flexvolsmb-prowlarr-config
|
||||
flexVolume:
|
||||
driver: mount/smb
|
||||
secretRef:
|
||||
name: flexvolsmb-credentials
|
||||
options:
|
||||
opts: file_mode=0777,dir_mode=0777,uid=1000,gid=1000,iocharset=utf8,nobrl
|
||||
server: 192.168.154.225
|
||||
share: /K3s.Volumes/prowlarr/config
|
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: flexvolsmb-prowlarr-config
|
||||
namespace: pvr
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: flexvolsmb-prowlarr-config
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
12
services/PVR/Prowlarr/service-prowlarr.yaml
Normal file
12
services/PVR/Prowlarr/service-prowlarr.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: prowlarr
|
||||
namespace: pvr
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
name: web
|
||||
port: 9696
|
||||
selector:
|
||||
app: prowlarr
|
Reference in New Issue
Block a user