k8s/namespaces/arr/sonarr/sonarr-deployment.yaml

54 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
***REMOVED***
name: sonarr
namespace: media
spec:
replicas: 1
selector:
matchLabels:
app: sonarr
template:
***REMOVED***
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