Add volume mount for caching in jellyfin

This commit is contained in:
Pim Kunis 2024-06-29 12:28:18 +02:00
parent 3c947a55a9
commit 61b07b275c

View file

@ -71,6 +71,7 @@
image = "jellyfin/jellyfin:10.9.6"; image = "jellyfin/jellyfin:10.9.6";
envFrom = [{ configMapRef.name = "jellyfin-env"; }]; envFrom = [{ configMapRef.name = "jellyfin-env"; }];
ports.web.containerPort = 8096; ports.web.containerPort = 8096;
imagePullPolicy = "Always";
volumeMounts = [ volumeMounts = [
{ {
@ -81,11 +82,17 @@
name = "media"; name = "media";
mountPath = "/media"; mountPath = "/media";
} }
{
name = "cache";
mountPath = "/config/transcodes";
}
]; ];
}; };
volumes = { volumes = {
config.persistentVolumeClaim.claimName = "jellyfin"; config.persistentVolumeClaim.claimName = "jellyfin";
cache.persistentVolumeClaim.claimName = "jellyfin-cache";
media.hostPath = { media.hostPath = {
path = "/mnt/longhorn/persistent/media"; path = "/mnt/longhorn/persistent/media";
type = "Directory"; type = "Directory";
@ -496,6 +503,11 @@
}; };
}; };
}; };
persistentVolumeClaims.jellyfin-cache.spec = {
accessModes = [ "ReadWriteOnce" ];
resources.requests.storage = "20Gi";
};
}; };
lab = { lab = {