Initial commit

This commit is contained in:
Fishandchips321 2025-10-26 14:42:33 +00:00
commit 55b0cfc1f3
10 changed files with 298 additions and 0 deletions

57
lidarr/deployment.yml Normal file
View file

@ -0,0 +1,57 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: lidarr
spec:
selector:
matchLabels:
app: lidarr
template:
metadata:
labels:
app: lidarr
spec:
containers:
- name: lidarr
image: lscr.io/linuxserver/lidarr:latest
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 8686
volumeMounts:
- name: lidarr-config
mountPath: /config
- name: music
mountPath: /music
- name: downloads
mountPath: /music/downloads
env:
- name: PUID
value: "0"
- name: PGID
value: "0"
volumes:
- name: lidarr-config
persistentVolumeClaim:
claimName: lidarr-config
- name: music
hostPath:
path: /mnt/nfs/music
- name: downloads
hostPath:
path: /mnt/nfs/soulseek
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: lidarr-config
spec:
resources:
requests:
storage: 128Mi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce

24
lidarr/ingress.yml Normal file
View file

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: lidarr
labels:
app.kubernetes.io/name: lidarr
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
tls:
- hosts:
- lidarr.foxhawk.co.uk
secretName: lidarr-tls
rules:
- host: lidarr.foxhawk.co.uk
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: lidarr
port:
number: 80

10
lidarr/service.yml Normal file
View file

@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: lidarr
spec:
selector:
app: lidarr
ports:
- port: 80
targetPort: 8686