Add radarr
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-10-15 21:02:05 -04:00
parent aa45bb4a0c
commit f107f2bce3
6 changed files with 105 additions and 1 deletions

View File

@ -10,7 +10,7 @@ spec:
accessModes: accessModes:
- ReadWriteMany - ReadWriteMany
hostPath: hostPath:
path: /Main/Black Hole path: /Main/Black hole
nodeAffinity: nodeAffinity:
required: required:
nodeSelectorTerms: nodeSelectorTerms:

21
torrenter/media-pv.yaml Normal file
View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: media-pv
namespace: torrent-ns
spec:
storageClassName: local-storage
capacity:
storage: 18000Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/Main/Media"
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- gluttony

13
torrenter/media-pvc.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: media-pvc
namespace: torrent-ns
spec:
volumeName: media-pv
storageClassName: local-storage
accessModes:
- ReadWriteMany
resources:
requests:
storage: 18000Gi

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: radarr-config-pvc
namespace: torrent-ns
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@ -0,0 +1,54 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: radarr
namespace: torrent-ns
labels:
app: radarr
spec:
replicas: 1
selector:
matchLabels:
app: torrenter-apps
template:
metadata:
labels:
app: torrenter-apps
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- gluttony
containers:
- name: radarr
image: lscr.io/linuxserver/radarr:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Etc/UTC"
ports:
- containerPort: 7878
volumeMounts:
- name: radarr-config
mountPath: /config
- name: downloads-volume
mountPath: /downloads
- name: movies-storage
mountPath: /movies
subPath: movies/movies_normal
volumes:
- name: radarr-config
persistentVolumeClaim:
claimName: radarr-config-pvc
- name: downloads-volume
persistentVolumeClaim:
claimName: blackhole-pvc

View File

@ -16,6 +16,9 @@ spec:
- name: deluge-p2p - name: deluge-p2p
port: 6881 port: 6881
targetPort: 6881 targetPort: 6881
- name: radarr
port: 7878
targetPort: 7878
selector: selector:
app: torrenter-apps app: torrenter-apps