Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-12-30 23:06:45 +00:00
parent 983d10aa1a
commit 3bc9a36829
4 changed files with 154 additions and 0 deletions

View File

@ -0,0 +1,87 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: tdarr
name: tdarr
spec:
selector:
matchLabels:
app: tdarr
strategy:
type: Recreate
template:
metadata:
labels:
app: tdarr
spec:
containers:
- env:
- name: TZ
value: "Europe/Berlin"
- name: serverPort
value: "8266"
- name: webUIPort
value: "8265"
- name: internalNode
value: "true"
- name: inContainer
value: "true"
- name: ffmpegVersion
value: "6"
image: ghcr.io/haveagitgat/tdarr:2.27.02
imagePullPolicy: Always
name: tdarr
ports:
- containerPort: 8265
name: http
protocol: TCP
- containerPort: 8266
name: server
protocol: TCP
resources:
limits:
gpu.intel.com/i915: "1"
requests:
gpu.intel.com/i915: "1"
cpu: 25m
memory: 628694953
volumeMounts:
- mountPath: /config
name: config
- mountPath: /app/server
name: config
subPath: server
- mountPath: /app/config
name: config
subPath: config
- mountPath: /app/logs
name: config
subPath: logs
- mountPath: /data
name: data
- mountPath: /media/series
name: combinedseries
- mountPath: /dev/dri
name: dev-dri
dnsPolicy: ClusterFirst
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
oldname: beelink
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
volumes:
- name: config
persistentVolumeClaim:
claimName: tdarr-config-data
- name: combinedseries
persistentVolumeClaim:
claimName: smb-combinedseries
- name: data
persistentVolumeClaim:
claimName: smb-usenet
- hostPath:
path: /dev/dri
type: Directory
name: dev-dri

View File

@ -0,0 +1,35 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-series
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-series
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-combinedseries
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-combinedseries
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-usenet
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-usenet

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app.kubernetes.io/instance: tdarr
name: tdarr-config-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: longhorn-fast

View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
annotations:
external-dns.alpha.kubernetes.io/hostname: tdarr.martyn.berlin
labels:
app: tdarr
name: tdarr
spec:
ports:
- targetPort: 8265
port: 80
name: web
- targetPort: 8266
port: 8266
name: s2s
selector:
app: tdarr
type: LoadBalancer