Add volume mount for caching in jellyfin
This commit is contained in:
parent
3c947a55a9
commit
61b07b275c
1 changed files with 12 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue