summaryrefslogtreecommitdiff
path: root/data.d/k3s-master/manifests.d/tyilnet/servarr/jellyfin/deployment.yaml
blob: 18205c463e0b962f806024d9573214475e09c162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: jellyfin
  namespace: servarr
  labels:
    app.kubernetes.io/created-by: tyil
    app.kubernetes.io/managed-by: manual
    app.kubernetes.io/name: jellyfin
    app.kubernetes.io/part-of: servarr
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/created-by: tyil
      app.kubernetes.io/managed-by: manual
      app.kubernetes.io/name: jellyfin
      app.kubernetes.io/part-of: servarr
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app.kubernetes.io/created-by: tyil
        app.kubernetes.io/managed-by: manual
        app.kubernetes.io/name: jellyfin
        app.kubernetes.io/part-of: servarr
    spec:
      nodeName: "mieshu.tyil.net"
      containers:
      - image: jellyfin/jellyfin
        name: jellyfin
        ports:
        - containerPort: 8096
        volumeMounts:
        - mountPath: /var/media/anime-movies
          name: anime-movies
          readOnly: true
        - mountPath: /var/media/anime-series
          name: anime-series
          readOnly: true
        - mountPath: /var/media/books
          name: books
          readOnly: true
        - mountPath: /var/media/movies
          name: movies
          readOnly: true
        - mountPath: /var/media/music
          name: music
          readOnly: true
        - mountPath: /var/media/series
          name: series
          readOnly: true
        - mountPath: /config
          name: config
        - mountPath: /cache
          name: cache
        resources:
          limits:
            amd.com/gpu: 1
      restartPolicy: Always
      volumes:
      - name: anime-movies
        hostPath:
          path: /mnt/pool/media/anime-movies/exported
          type: Directory
      - name: anime-series
        hostPath:
          path: /mnt/pool/media/anime-series/exported
          type: Directory
      - name: books
        hostPath:
          path: /mnt/pool/media/books/exported
          type: Directory
      - name: movies
        hostPath:
          path: /mnt/pool/media/movies/exported
          type: Directory
      - name: music
        hostPath:
          path: /mnt/pool/media/music/exported
          type: Directory
      - name: series
        hostPath:
          path: /mnt/pool/media/series/exported
          type: Directory
      - name: cache
        hostPath:
          path: /var/cache/jellyfin
          type: Directory
      - name: config
        hostPath:
          path: /etc/servarr/jellyfin
          type: Directory
...