Files
home/k8s_manifests/sonarr/deployment.yaml
2025-01-16 22:22:53 +01:00

53 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
labels:
app.kubernetes.io/name: sonarr
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: sonarr
template:
metadata:
labels:
app.kubernetes.io/name: sonarr
spec:
volumes:
- name: nfs-vol
nfs:
server: 192.168.0.99
path: /mnt/test1/media/
- name: config
nfs:
server: 192.168.0.99
path: /mnt/test1/media/config/sonarr/
containers:
- name: sonarr
image: ghcr.io/hotio/sonarr:latest
livenessProbe:
httpGet:
path: /ping
port: 8989
initialDelaySeconds: 60
failureThreshold: 6
periodSeconds: 10
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: "Etc/UTC"
ports:
- containerPort: 8989
volumeMounts:
- name: config
mountPath: /config
- name: nfs-vol
mountPath: /media