Files
media-stack/base/dispatcharr.yaml
2026-02-27 00:55:03 +00:00

90 lines
2.0 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dispatcharr
namespace: media
labels:
app: dispatcharr
app.kubernetes.io/name: dispatcharr
app.kubernetes.io/component: iptv-proxy
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: dispatcharr
template:
metadata:
labels:
app: dispatcharr
spec:
containers:
- name: dispatcharr
image: ghcr.io/dispatcharr/dispatcharr:latest
ports:
- name: http
containerPort: 9191
protocol: TCP
env:
- name: DISPATCHARR_ENV
value: "aio"
- name: REDIS_HOST
value: "localhost"
- name: CELERY_BROKER_URL
value: "redis://localhost:6379/0"
- name: DISPATCHARR_LOG_LEVEL
value: "info"
- name: TZ
valueFrom:
configMapKeyRef:
name: media-config
key: TZ
volumeMounts:
- name: config
mountPath: /data
subPath: dispatcharr
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "1Gi"
cpu: "1000m"
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
persistentVolumeClaim:
claimName: media-config
---
apiVersion: v1
kind: Service
metadata:
name: dispatcharr
namespace: media
labels:
app: dispatcharr
spec:
type: NodePort
selector:
app: dispatcharr
ports:
- name: http
port: 9191
targetPort: 9191
nodePort: 30191
protocol: TCP