diff --git a/apps-kustomized/tdarr/deploy.yaml b/apps-kustomized/tdarr/deploy.yaml new file mode 100644 index 0000000..045187d --- /dev/null +++ b/apps-kustomized/tdarr/deploy.yaml @@ -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 diff --git a/apps-kustomized/tdarr/pvc-smb.yaml b/apps-kustomized/tdarr/pvc-smb.yaml new file mode 100644 index 0000000..e24ef73 --- /dev/null +++ b/apps-kustomized/tdarr/pvc-smb.yaml @@ -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 diff --git a/apps-kustomized/tdarr/pvc.yaml b/apps-kustomized/tdarr/pvc.yaml new file mode 100644 index 0000000..c17e634 --- /dev/null +++ b/apps-kustomized/tdarr/pvc.yaml @@ -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 diff --git a/apps-kustomized/tdarr/svc.yaml b/apps-kustomized/tdarr/svc.yaml new file mode 100644 index 0000000..ae154c3 --- /dev/null +++ b/apps-kustomized/tdarr/svc.yaml @@ -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