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