Files
infrastructure/servers/legion/k8s/media/bazarr.yaml
T
Will Anderson ba339ee5c9 bazarr: increase liveness probe delay to 120s — startup takes 90+s
Bazarr initializes scheduler, DB, and Radarr/Sonarr connections before
serving HTTP. 30s initialDelay was too short, causing restart loops.
Also add readinessProbe and failureThreshold for resilience.
2026-04-11 02:33:41 -05:00

85 lines
2.1 KiB
YAML

# Bazarr — automatic subtitle downloader
# Connects to Radarr + Sonarr, downloads subtitles from OpenSubtitles/Subscene/etc.
# After deploy, configure at bazarr:6767:
# 1. Settings > Radarr: URL=http://radarr:7878, API key from Radarr Settings > General
# 2. Settings > Sonarr: URL=http://sonarr:8989, API key from Sonarr Settings > General
# 3. Settings > Providers: add OpenSubtitles.com (free account) for best coverage
# 4. Settings > Languages: add English (and any other desired languages)
apiVersion: apps/v1
kind: Deployment
metadata:
name: bazarr
namespace: media
labels:
app: bazarr
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: bazarr
template:
metadata:
labels:
app: bazarr
spec:
containers:
- name: bazarr
image: lscr.io/linuxserver/bazarr:latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "America/Chicago"
ports:
- containerPort: 6767
volumeMounts:
- name: config
mountPath: /config
- name: media
mountPath: /media
resources:
requests:
memory: 128Mi
cpu: 50m
limits:
memory: 512Mi
cpu: 200m
livenessProbe:
httpGet:
path: /
port: 6767
initialDelaySeconds: 120
periodSeconds: 30
failureThreshold: 5
readinessProbe:
httpGet:
path: /
port: 6767
initialDelaySeconds: 60
periodSeconds: 15
volumes:
- name: config
persistentVolumeClaim:
claimName: bazarr-config
- name: media
persistentVolumeClaim:
claimName: media-data
---
apiVersion: v1
kind: Service
metadata:
name: bazarr
namespace: media
spec:
selector:
app: bazarr
ports:
- name: http
port: 6767
targetPort: 6767
type: ClusterIP