2026-03-08 04:19:04 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
2026-03-17 08:11:22 +00:00
|
|
|
metadata:
|
2026-03-08 04:19:04 +00:00
|
|
|
name: sonarr
|
|
|
|
|
namespace: media
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: sonarr
|
|
|
|
|
template:
|
2026-03-17 08:11:22 +00:00
|
|
|
metadata:
|
2026-03-08 04:19:04 +00:00
|
|
|
labels:
|
|
|
|
|
app: sonarr
|
|
|
|
|
spec:
|
|
|
|
|
initContainers:
|
|
|
|
|
- name: init-storage
|
|
|
|
|
image: busybox
|
|
|
|
|
command:
|
|
|
|
|
- sh
|
|
|
|
|
- -c
|
|
|
|
|
- |
|
|
|
|
|
mkdir -p /config && chown -R 33:33 /config
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: config
|
|
|
|
|
mountPath: /config
|
|
|
|
|
containers:
|
|
|
|
|
- name: sonarr
|
|
|
|
|
image: linuxserver/sonarr
|
|
|
|
|
env:
|
|
|
|
|
- name: PUID
|
|
|
|
|
value: "1000"
|
|
|
|
|
- name: PGID
|
|
|
|
|
value: "1000"
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: config
|
|
|
|
|
mountPath: /config
|
|
|
|
|
- name: videos
|
|
|
|
|
mountPath: /tv
|
|
|
|
|
- name: downloads
|
|
|
|
|
mountPath: /downloads
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8989
|
|
|
|
|
volumes:
|
|
|
|
|
- name: config
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: sonarr-config
|
|
|
|
|
- name: videos
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: jellyfin-media
|
|
|
|
|
- name: downloads
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: qbittorrent-downloads
|