This commit is contained in:
Roxedus 2022-04-17 22:19:03 +02:00
parent d68ff55038
commit c59823cfc8
Signed by: Roxedus
GPG Key ID: 9B4E311961C63639
9 changed files with 191 additions and 0 deletions

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-unraid-data
spec:
storageClassName: nfs
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Ti

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-unraid-disk-docker-app
spec:
storageClassName: nfs
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-unraid-disk-docker-log
spec:
storageClassName: nfs
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-unraid-disk-docker-waste
spec:
storageClassName: nfs
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi

18
Volumes/unraid-data.yaml Normal file
View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-unraid-data
spec:
capacity:
storage: 50Ti
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /mnt/user/data/media
server: 10.0.0.30

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-unraid-disk-docker-app
spec:
capacity:
storage: 400Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /mnt/disks/Docker/AppData
server: 10.0.0.30

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-unraid-disk-docker-log
spec:
capacity:
storage: 400Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /mnt/disks/Docker/LogData
server: 10.0.0.30

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-unraid-disk-docker-waste
spec:
capacity:
storage: 400Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /mnt/disks/Docker/WasteData
server: 10.0.0.30

View File

@ -0,0 +1,75 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: radarr-norsk
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: radarr-norsk
template:
metadata:
labels:
app: radarr-norsk
init: s6
maintainer: lsio
spec:
volumes:
- name: unraid-data
persistentVolumeClaim:
claimName: nfs-unraid-data
- name: unraid-waste
persistentVolumeClaim:
claimName: nfs-unraid-disk-docker-waste
- name: unraid-log
persistentVolumeClaim:
claimName: nfs-unraid-disk-docker-log
- name: unraid-app
persistentVolumeClaim:
claimName: nfs-unraid-disk-docker-app
containers:
- image: lscr.io/linuxserver/radarr:nightly
name: radarr-norsk
resources:
limits:
cpu: "2"
memory: "1500Mi"
requests:
cpu: "300m"
memory: "100Mi"
ports:
- containerPort: 7878
env:
- name: PUID
value: "99"
- name: PGID
value: "100"
- name: TZ
value: Europe/Oslo
- name: Radarr__Postgres__Host
value: 10.0.0.30
- name: Radarr__Postgres__Port
value: "5432"
- name: Radarr__Postgres__User
valueFrom:
secretKeyRef:
name: radarr-norsk-postgres
key: Radarr__Postgres__User
- name: Radarr__Postgres__Password
valueFrom:
secretKeyRef:
name: radarr-norsk-postgres
key: Radarr__Postgres__Password
volumeMounts:
- mountPath: "/mnt/data"
name: unraid-data
- mountPath: "/config/MediaCover"
subPath: radarr_norsk/app/MediaCover
name: unraid-waste
- mountPath: "/config/logs"
subPath: radarr_norsk
name: unraid-log
- mountPath: "/config"
subPath: radarr_norsk
name: unraid-app