add radarr

This commit is contained in:
Mans Ziesel 2024-10-27 12:23:56 +01:00
parent 2a794cc641
commit f94ba240a3
5 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: radarr
labels:
app: radarr
spec:
replicas: 1
selector:
matchLabels:
app: radarr
template:
metadata:
labels:
app: radarr
annotations:
spec:
volumes:
- name: radarr-config
persistentVolumeClaim:
claimName: mediaserver-radarr-config-pvc
- name: plex-data
persistentVolumeClaim:
claimName: mediaserver-plex-data-pvc
- name: rdtclient-downloads
persistentVolumeClaim:
claimName: mediaserver-rdtclient-downloads-pvc
containers:
- name: radarr
image: ghcr.io/hotio/radarr:nightly@sha256:4ae34fcfa53ab10674ec31b69f7057f35e4b553338eb9bfcb7b5afb32b4edba0
resources:
requests:
cpu: 1
memory: 512Mi
ports:
- name: web
containerPort: 7878
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Europe/Amsterdam
volumeMounts:
- mountPath: /config
name: radarr-config
- mountPath: /downloads
name: rdtclient-downloads
- mountPath: /data
name: plex-data

View File

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

View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mediaserver-radarr-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-radarr
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: radarr

View File

@ -17,3 +17,7 @@ resources:
- ./base/mediaserver-rdtclient-ingress.yaml
- ./base/mediaserver-rdtclient-pvc.yaml
- ./base/mediaserver-rdtclient-svc.yaml
- ./base/mediaserver-radarr-deployment.yaml
- ./base/mediaserver-radarr-ingress.yaml
- ./base/mediaserver-radarr-pvc.yaml
- ./base/mediaserver-radarr-svc.yaml