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";
|
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 = {
|
||||||
|
|
Loading…
Reference in a new issue