Migrate attic data to longhorn

This commit is contained in:
Pim Kunis 2024-05-23 22:52:05 +02:00
parent 2ed872fa8f
commit 11200c0ff7
3 changed files with 7 additions and 58 deletions

View file

@ -72,9 +72,14 @@
}; };
volumes = { volumes = {
data.persistentVolumeClaim.claimName = "atticd"; data.persistentVolumeClaim.claimName = "attic";
config.configMap.name = "atticd-config"; config.configMap.name = "atticd-config";
}; };
securityContext = {
fsGroup = 0;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };

View file

@ -1,51 +1,4 @@
{ {
# kubernetes.resources.pods.testje.spec = {
# containers.testje = {
# image = "nginx";
# volumeMounts = [
# {
# name = "jellyfin";
# mountPath = "/jellyfin";
# }
# {
# name = "transmission";
# mountPath = "/transmission";
# }
# {
# name = "jellyseerr";
# mountPath = "/jellyseerr";
# }
# {
# name = "radarr";
# mountPath = "/radarr";
# }
# {
# name = "prowlarr";
# mountPath = "/prowlarr";
# }
# {
# name = "sonarr";
# mountPath = "/sonarr";
# }
# {
# name = "bazarr";
# mountPath = "/bazarr";
# }
# ];
# };
# volumes = {
# jellyfin.persistentVolumeClaim.claimName = "jellyfin";
# transmission.persistentVolumeClaim.claimName = "transmission";
# jellyseerr.persistentVolumeClaim.claimName = "jellyseerr";
# radarr.persistentVolumeClaim.claimName = "radarr";
# prowlarr.persistentVolumeClaim.claimName = "prowlarr";
# sonarr.persistentVolumeClaim.claimName = "sonarr";
# bazarr.persistentVolumeClaim.claimName = "bazarr";
# };
# };
lab = { lab = {
longhornVolumes = { longhornVolumes = {
hedgedoc-uploads.storage = "50Mi"; hedgedoc-uploads.storage = "50Mi";
@ -67,12 +20,12 @@
prowlarr.storage = "150Mi"; prowlarr.storage = "150Mi";
sonarr.storage = "150Mi"; sonarr.storage = "150Mi";
bazarr.storage = "25Mi"; bazarr.storage = "25Mi";
attic.storage = "15Gi";
}; };
nfsVolumes = { nfsVolumes = {
media.path = "media"; media.path = "media";
music.path = "media/music"; music.path = "media/music";
atticd.path = "atticd";
}; };
}; };
} }

View file

@ -8,15 +8,6 @@ let
"/media/movies" "/media/movies"
"/media/music" "/media/music"
"/media/shows" "/media/shows"
"/jellyfin/config"
"/transmission/config"
"/jellyseerr/config"
"/radarr/config"
"/prowlarr/config"
"/sonarr/config"
"/bazarr/config"
"/minecraft"
"/atticd"
"/longhorn-backup" "/longhorn-backup"
]; ];