Skip to content

Commit

Permalink
feat: readarr
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed May 5, 2024
1 parent 3be43f0 commit 72e577a
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ resources:
- sonarr
- radarr
- bazarr
- readarr
40 changes: 40 additions & 0 deletions apps/media/readarr/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: readarr
namespace: media
spec:
selector:
matchLabels:
app: readarr
replicas: 1
template:
metadata:
labels:
app: readarr
spec:
containers:
- name: readarr
image: lscr.io/linuxserver/readarr:latest
ports:
- containerPort: 8787
name: readarr
volumeMounts:
- name: books
mountPath: /books
- name: downloads
mountPath: /downloads
- name: config
mountPath: /config
volumes:
- name: books
hostPath:
path: /home/padawan/homelab/media-server/media/books
type: Directory
- name: downloads
hostPath:
path: /home/padawan/homelab/media-server/media/downloads
type: Directory
- name: config
persistentVolumeClaim:
claimName: readarr-config
21 changes: 21 additions & 0 deletions apps/media/readarr/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: readarr
namespace: media
spec:
tls:
- hosts:
- readarr.totorinho.duckdns.org
secretName: duckdns-wildcard-cert-totorinho.duckdns.org
rules:
- host: readarr.totorinho.duckdns.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: readarr
port:
number: 8787
7 changes: 7 additions & 0 deletions apps/media/readarr/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
15 changes: 15 additions & 0 deletions apps/media/readarr/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: readarr-config
namespace: media
labels:
app: readarr
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi

11 changes: 11 additions & 0 deletions apps/media/readarr/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: readarr
namespace: media
spec:
selector:
app: readarr
ports:
- port: 8787
targetPort: 8787

0 comments on commit 72e577a

Please sign in to comment.