From 5cf428251203fa93838e82daa72e3abbe2b53ca9 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Mon, 16 Jan 2023 09:56:13 +0100
Subject: [PATCH] feat(jellyfin): Add shows mount

---
 apps/k8s01/jellyfin/deployment.yaml |  6 ++++++
 apps/k8s01/jellyfin/pv.yaml         | 19 +++++++++++++++++++
 apps/k8s01/jellyfin/pvc.yaml        | 17 +++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/apps/k8s01/jellyfin/deployment.yaml b/apps/k8s01/jellyfin/deployment.yaml
index 5a4bd948f..45f8fb8b7 100644
--- a/apps/k8s01/jellyfin/deployment.yaml
+++ b/apps/k8s01/jellyfin/deployment.yaml
@@ -47,6 +47,9 @@ spec:
         - containerPort: 8096
           protocol: TCP
         volumeMounts:
+        - mountPath: /data/media/shows
+          name: shows
+          readOnly: True
         - mountPath: /data/media/movies
           name: movies
           readOnly: True
@@ -71,6 +74,9 @@ spec:
       - name: movies
         persistentVolumeClaim:
           claimName: jellyfin-movies
+      - name: shows
+        persistentVolumeClaim:
+          claimName: jellyfin-shows
       - name: media
         persistentVolumeClaim:
           claimName: media
diff --git a/apps/k8s01/jellyfin/pv.yaml b/apps/k8s01/jellyfin/pv.yaml
index 4f0431d91..a827cd674 100644
--- a/apps/k8s01/jellyfin/pv.yaml
+++ b/apps/k8s01/jellyfin/pv.yaml
@@ -16,3 +16,22 @@ spec:
   mountOptions:
     - hard
     - noexec
+---
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+  name: jellyfin-shows
+spec:
+  persistentVolumeReclaimPolicy: Retain
+  storageClassName: ""
+  capacity:
+    storage: 2Ti
+  accessModes:
+    - ReadWriteMany
+  volumeMode: Filesystem
+  nfs:
+    server: fs03.storage.si-infra.de
+    path: "/mnt/NAS/shares/shows"
+  mountOptions:
+    - hard
+    - noexec
diff --git a/apps/k8s01/jellyfin/pvc.yaml b/apps/k8s01/jellyfin/pvc.yaml
index cc88ddaa8..618a3a802 100644
--- a/apps/k8s01/jellyfin/pvc.yaml
+++ b/apps/k8s01/jellyfin/pvc.yaml
@@ -15,6 +15,23 @@ spec:
       storage: 2Ti
   volumeName: jellyfin-movies
 ---
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: jellyfin-shows
+  labels:
+    app.kubernetes.io/name: jellyfin
+    app.kubernetes.io/component: jellyfin
+spec:
+  storageClassName: ""
+  accessModes:
+    - ReadWriteMany
+  resources:
+    requests:
+      storage: 2Ti
+  volumeName: jellyfin-shows
+---
 apiVersion: v1
 kind: PersistentVolumeClaim
 metadata:
-- 
GitLab