add radarr
This commit is contained in:
1 parent
2366bd5f66
commit
6842375d47
6 files changed
+141
No files matched your search
@@ -0,0 +1,25 @@
|
|||||||
|
# This ArgoCD application deploys radarr to manage Movies for the media library
|
||||||
|
# This application pulls its image from hotio as theyre generally light weight
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
|
||||||
|
source:
|
||||||
|
repoURL: https://tea.ahmza.com/ahmza.com/k8s-starter-pack.git
|
||||||
|
targetRevision: main
|
||||||
|
path: apps/radarr
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: radarr
|
||||||
|
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
# bazarr image from hotio ghcr.io/hotio/radarr
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
namespace: radarr
|
||||||
|
spec:
|
||||||
|
# Not Critical Infra so a single pod is fine
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: radarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: radarr
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: radarr
|
||||||
|
image: ghcr.io/hotio/radarr:release
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: UMASK
|
||||||
|
value: "002"
|
||||||
|
- name: TZ
|
||||||
|
value: "Europe/London"
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 7878
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- name: radarr-config
|
||||||
|
mountPath: /config
|
||||||
|
# Mount each media directory directly instead of using subPath.
|
||||||
|
# The NFS export root is not listable by root-squashed clients, so
|
||||||
|
# kubelet cannot safely prepare subPath mounts from that root.
|
||||||
|
- name: movies
|
||||||
|
mountPath: /movies
|
||||||
|
- name: torrents
|
||||||
|
mountPath: /data/torrents
|
||||||
|
- name: usenet
|
||||||
|
mountPath: /data/usenet
|
||||||
|
volumes:
|
||||||
|
- name: radarr-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: radarr-config
|
||||||
|
- name: movies
|
||||||
|
nfs:
|
||||||
|
server: nas.ahmza.com
|
||||||
|
path: /srv/media/Movies
|
||||||
|
- name: torrents
|
||||||
|
nfs:
|
||||||
|
server: nas.ahmza.com
|
||||||
|
path: /srv/media/torrents
|
||||||
|
- name: usenet
|
||||||
|
nfs:
|
||||||
|
server: nas.ahmza.com
|
||||||
|
path: /srv/media/usenet
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# routes for radarr.ahmza.com through ingress-nginx (docs/11-ingress.md)
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
namespace: radarr
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- radarr.ahmza.com
|
||||||
|
secretName: radarr-tls
|
||||||
|
rules:
|
||||||
|
- host: radarr.ahmza.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: radarr
|
||||||
|
port:
|
||||||
|
number: 7878
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# create a longhorn pvc for radarr's config, see (docs/06-longhorn.md)
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: radarr-config
|
||||||
|
namespace: radarr
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
namespace: radarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: radarr
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 7878
|
||||||
|
targetPort: http
|
||||||
Reference in new issue
Block a user