Move Jellyfin state off Longhorn

This commit is contained in:
Pim Kunis 2025-05-23 10:41:29 +02:00
parent 4787e12d63
commit 6b2be908ff
2 changed files with 5 additions and 12 deletions
modules

View file

@ -73,21 +73,20 @@ in {
};
volumes = {
config.persistentVolumeClaim.claimName = "jellyfin";
cache.persistentVolumeClaim.claimName = "jellyfin-cache";
music.persistentVolumeClaim.claimName = "music";
config.hostPath = {
path = "/mnt/longhorn/persistent/volumes/jellyfin";
type = "Directory";
};
media.hostPath = {
path = "/mnt/longhorn/persistent/media";
type = "Directory";
};
};
securityContext = {
fsGroup = 0;
fsGroupChangePolicy = "OnRootMismatch";
};
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [
{
matchExpressions = [
@ -808,11 +807,6 @@ in {
};
longhorn.persistentVolumeClaim = {
jellyfin = lib.mkIf cfg.jellyfin.enable {
volumeName = "jellyfin";
storage = "10Gi";
};
music = lib.mkIf cfg.jellyfin.enable {
volumeName = "music";
storage = "70Gi";