Files
k8s-starter-pack/apps/sonarr/deployment.yaml
T
2026-11-01 12:25:02 +00:00

71 lines
1.9 KiB
YAML

# bazarr image from hotio ghcr.io/hotio/sonarr
apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
namespace: sonarr
spec:
# Not Critical Infra so a single pod is fine
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: sonarr
template:
metadata:
labels:
app: sonarr
spec:
containers:
- name: sonarr
image: ghcr.io/hotio/sonarr:release
imagePullPolicy: Always
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Europe/London"
ports:
- name: http
containerPort: 8989
protocol: TCP
volumeMounts:
- name: sonarr-config
mountPath: /config
# Mount each media directory directly instead of using subPath.
# The NFS export root is not listable by root-squashed clients, so
# kubelet cannot safely prepare subPath mounts from that root.
- name: tv
mountPath: /tv
- name: anime
mountPath: /anime
- name: torrents
mountPath: /data/torrents
- name: usenet
mountPath: /data/usenet
volumes:
- name: sonarr-config
persistentVolumeClaim:
claimName: sonarr-config
- name: tv
nfs:
server: nas.ahmza.com
path: /srv/media/TVShows
- name: anime
nfs:
server: nas.ahmza.com
path: /srv/media/Anime
- name: torrents
nfs:
server: nas.ahmza.com
path: /srv/media/torrents
- name: usenet
nfs:
server: nas.ahmza.com
path: /srv/media/usenet