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