Skip to content

Commit

Permalink
feat: sonarr
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed May 5, 2024
1 parent b80e5db commit b18a4a5
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 @@ -5,3 +5,4 @@ resources:
- jellyfin
- prowlarr
- qbittorrent
- sonarr
40 changes: 40 additions & 0 deletions apps/media/sonarr/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
namespace: media
spec:
selector:
matchLabels:
app: sonarr
replicas: 1
template:
metadata:
labels:
app: sonarr
spec:
containers:
- name: sonarr
image: lscr.io/linuxserver/sonarr:latest
ports:
- containerPort: 8989
name: sonarr
volumeMounts:
- name: shows
mountPath: /tv
- name: downloads
mountPath: /downloads
- name: config
mountPath: /config
volumes:
- name: shows
hostPath:
path: /home/padawan/homelab/media-server/media/shows
type: Directory
- name: downloads
hostPath:
path: /home/padawan/homelab/media-server/media/downloads
type: Directory
- name: config
persistentVolumeClaim:
claimName: sonarr-config
21 changes: 21 additions & 0 deletions apps/media/sonarr/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: sonarr
namespace: media
spec:
tls:
- hosts:
- sonarr.totorinho.duckdns.org
secretName: duckdns-wildcard-cert-totorinho.duckdns.org
rules:
- host: sonarr.totorinho.duckdns.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: sonarr
port:
number: 8989
7 changes: 7 additions & 0 deletions apps/media/sonarr/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/sonarr/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sonarr-config
namespace: media
labels:
app: sonarr
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi

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

0 comments on commit b18a4a5

Please sign in to comment.