Migrate media stack data to longhorn

This commit is contained in:
Pim Kunis 2024-05-23 22:30:30 +02:00
parent 5629801afe
commit 2ed872fa8f
2 changed files with 80 additions and 20 deletions

View file

@ -76,9 +76,14 @@
}; };
volumes = { volumes = {
config.persistentVolumeClaim.claimName = "jellyfin-config"; config.persistentVolumeClaim.claimName = "jellyfin";
media.persistentVolumeClaim.claimName = "media"; media.persistentVolumeClaim.claimName = "media";
}; };
securityContext = {
fsGroup = 0;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };
@ -125,9 +130,14 @@
}; };
volumes = { volumes = {
config.persistentVolumeClaim.claimName = "transmission-config"; config.persistentVolumeClaim.claimName = "transmission";
media.persistentVolumeClaim.claimName = "media"; media.persistentVolumeClaim.claimName = "media";
}; };
securityContext = {
fsGroup = 1000;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };
@ -152,7 +162,7 @@
}; };
spec = { spec = {
volumes.config.persistentVolumeClaim.claimName = "jellyseerr-config"; volumes.config.persistentVolumeClaim.claimName = "jellyseerr";
containers.jellyseerr = { containers.jellyseerr = {
image = "fallenbagel/jellyseerr:1.7.0"; image = "fallenbagel/jellyseerr:1.7.0";
@ -164,6 +174,11 @@
mountPath = "/app/config"; mountPath = "/app/config";
}]; }];
}; };
securityContext = {
fsGroup = 0;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };
@ -206,9 +221,14 @@
}; };
volumes = { volumes = {
config.persistentVolumeClaim.claimName = "radarr-config"; config.persistentVolumeClaim.claimName = "radarr";
media.persistentVolumeClaim.claimName = "media"; media.persistentVolumeClaim.claimName = "media";
}; };
securityContext = {
fsGroup = 1000;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };
@ -233,7 +253,7 @@
}; };
spec = { spec = {
volumes.config.persistentVolumeClaim.claimName = "prowlarr-config"; volumes.config.persistentVolumeClaim.claimName = "prowlarr";
containers.prowlarr = { containers.prowlarr = {
image = "lscr.io/linuxserver/prowlarr:latest"; image = "lscr.io/linuxserver/prowlarr:latest";
@ -245,6 +265,11 @@
mountPath = "/config"; mountPath = "/config";
}]; }];
}; };
securityContext = {
fsGroup = 1000;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };
@ -287,9 +312,14 @@
}; };
volumes = { volumes = {
config.persistentVolumeClaim.claimName = "sonarr-config"; config.persistentVolumeClaim.claimName = "sonarr";
media.persistentVolumeClaim.claimName = "media"; media.persistentVolumeClaim.claimName = "media";
}; };
securityContext = {
fsGroup = 1000;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };
@ -332,9 +362,14 @@
}; };
volumes = { volumes = {
config.persistentVolumeClaim.claimName = "bazarr-config"; config.persistentVolumeClaim.claimName = "bazarr";
media.persistentVolumeClaim.claimName = "media"; media.persistentVolumeClaim.claimName = "media";
}; };
securityContext = {
fsGroup = 1000;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };

View file

@ -5,19 +5,44 @@
# volumeMounts = [ # volumeMounts = [
# { # {
# name = "paperless-data"; # name = "jellyfin";
# mountPath = "/paperless-data"; # mountPath = "/jellyfin";
# } # }
# { # {
# name = "paperless-redisdata"; # name = "transmission";
# mountPath = "/paperless-redisdata"; # mountPath = "/transmission";
# }
# {
# name = "jellyseerr";
# mountPath = "/jellyseerr";
# }
# {
# name = "radarr";
# mountPath = "/radarr";
# }
# {
# name = "prowlarr";
# mountPath = "/prowlarr";
# }
# {
# name = "sonarr";
# mountPath = "/sonarr";
# }
# {
# name = "bazarr";
# mountPath = "/bazarr";
# } # }
# ]; # ];
# }; # };
# volumes = { # volumes = {
# paperless-data.persistentVolumeClaim.claimName = "paperless-data"; # jellyfin.persistentVolumeClaim.claimName = "jellyfin";
# paperless-redisdata.persistentVolumeClaim.claimName = "paperless-redisdata"; # transmission.persistentVolumeClaim.claimName = "transmission";
# jellyseerr.persistentVolumeClaim.claimName = "jellyseerr";
# radarr.persistentVolumeClaim.claimName = "radarr";
# prowlarr.persistentVolumeClaim.claimName = "prowlarr";
# sonarr.persistentVolumeClaim.claimName = "sonarr";
# bazarr.persistentVolumeClaim.claimName = "bazarr";
# }; # };
# }; # };
@ -35,18 +60,18 @@
syncthing.storage = "400Mi"; syncthing.storage = "400Mi";
paperless-data.storage = "10Gi"; paperless-data.storage = "10Gi";
paperless-redisdata.storage = "20Mi"; paperless-redisdata.storage = "20Mi";
jellyfin.storage = "5Gi";
transmission.storage = "25Mi";
jellyseerr.storage = "75Mi";
radarr.storage = "300Mi";
prowlarr.storage = "150Mi";
sonarr.storage = "150Mi";
bazarr.storage = "25Mi";
}; };
nfsVolumes = { nfsVolumes = {
jellyfin-config.path = "jellyfin/config";
media.path = "media"; media.path = "media";
music.path = "media/music"; music.path = "media/music";
transmission-config.path = "transmission/config";
jellyseerr-config.path = "jellyseerr/config";
radarr-config.path = "radarr/config";
prowlarr-config.path = "prowlarr/config";
sonarr-config.path = "sonarr/config";
bazarr-config.path = "bazarr/config";
atticd.path = "atticd"; atticd.path = "atticd";
}; };
}; };