This commit is contained in:
parent
aa45bb4a0c
commit
f107f2bce3
@ -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
21
torrenter/media-pv.yaml
Normal 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
13
torrenter/media-pvc.yaml
Normal 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
|
13
torrenter/radarr/radarr-config-pvc.yaml
Normal file
13
torrenter/radarr/radarr-config-pvc.yaml
Normal 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
|
||||||
|
|
54
torrenter/radarr/radarr-deployment.yaml
Normal file
54
torrenter/radarr/radarr-deployment.yaml
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user