From 273a903bc1a075f2682897a16d15a4cfecd188e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Mon, 13 Jul 2026 10:27:45 +0000 Subject: [PATCH] moved metadata to specific pv --- deploy/app/deployment.yaml | 5 +++++ deploy/app/volumes.app-data.yaml | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/deploy/app/deployment.yaml b/deploy/app/deployment.yaml index 94cbe9f..8e78203 100644 --- a/deploy/app/deployment.yaml +++ b/deploy/app/deployment.yaml @@ -25,6 +25,8 @@ spec: mountPath: /cache - name: config mountPath: /config + - name: metadata + mountPath: /config/metadata - name: music mountPath: /music - name: tv-shows @@ -47,3 +49,6 @@ spec: - name: movies persistentVolumeClaim: claimName: jellyfin-movies + - name: metadata + persistentVolumeClaim: + claimName: jellyfin-metadata \ No newline at end of file diff --git a/deploy/app/volumes.app-data.yaml b/deploy/app/volumes.app-data.yaml index 15bb85e..93d97c4 100644 --- a/deploy/app/volumes.app-data.yaml +++ b/deploy/app/volumes.app-data.yaml @@ -35,6 +35,44 @@ spec: storageClassName: "" --- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: jellyfin-metadata +spec: + capacity: + storage: 10Gi + accessModes: + - ReadWriteOnce + hostPath: + path: /dataDisks/ssd0/k3s/named_volumes/pv-jellyfin-metadata + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - casa-minion-01 +--- + +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: jellyfin-metadata +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + volumeName: jellyfin-metadata + + # required to prevent Kubernetes from assigning the default storageClass (local-path) + storageClassName: "" +--- + + apiVersion: v1 kind: PersistentVolumeClaim metadata: