Files
htpc/k8s/sonarr/deployment.yaml
bart f5cdffdecd
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 3s
feat(sonarr): add Kubernetes manifests for Sonarr with PostgreSQL backend
2026-10-18 15:50:00 +02:00

85 lines
2.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
namespace: htpc
labels:
app.kubernetes.io/name: sonarr
app.kubernetes.io/part-of: htpc
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: sonarr
template:
metadata:
labels:
app: sonarr
app.kubernetes.io/name: sonarr
app.kubernetes.io/part-of: htpc
spec:
nodeSelector:
kubernetes.io/hostname: vmserver
containers:
- name: sonarr
image: lscr.io/linuxserver/sonarr:latest
imagePullPolicy: IfNotPresent
env:
- name: PUID
value: "33"
- name: PGID
value: "33"
- name: TZ
value: "Europe/Amsterdam"
- name: UMASK
value: "0002"
envFrom:
- secretRef:
name: sonarr-secret
ports:
- name: http
containerPort: 8989
hostPort: 8989
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 2000m
memory: 2Gi
volumeMounts:
- name: config
mountPath: /config
- name: datadisk
mountPath: /datadisk
- name: mnt-mp3
mountPath: /mnt/mp3
livenessProbe:
httpGet:
path: /sonarr/ping
port: 8989
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /sonarr/ping
port: 8989
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
persistentVolumeClaim:
claimName: sonarr-config
- name: datadisk
hostPath:
path: /datadisk
type: Directory
- name: mnt-mp3
hostPath:
path: /mnt/mp3
type: Directory