From f5cff1bbb3b2c2bd75988100f47140fa614a593d Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 28 May 2025 21:52:10 +0200 Subject: [PATCH] Move attic off longhorn --- modules/attic.nix | 27 +++++++++++++-------------- modules/bootstrap-default.nix | 2 -- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/modules/attic.nix b/modules/attic.nix index 3c6a77b..b67ace0 100644 --- a/modules/attic.nix +++ b/modules/attic.nix @@ -40,6 +40,8 @@ }; spec = { + nodeName = "jefke"; + containers.attic = { image = utils.mkNixNGImage "attic"; ports.web.containerPort = 8080; @@ -65,8 +67,12 @@ }; volumes = { - data.persistentVolumeClaim.claimName = "data"; server.secret.secretName = "server"; + + data.hostPath = { + path = "/mnt/longhorn/persistent/volumes/attic"; + type = "Directory"; + }; }; securityContext = { @@ -90,6 +96,8 @@ }; spec = { + nodeName = "jefke"; + containers.postgres = { image = globals.images.postgres15; imagePullPolicy = "IfNotPresent"; @@ -114,7 +122,10 @@ ]; }; - volumes.data.persistentVolumeClaim.claimName = "database"; + volumes.data.hostPath = { + path = "/mnt/longhorn/persistent/volumes/attic-db"; + type = "Directory"; + }; }; }; }; @@ -156,18 +167,6 @@ portName = "web"; }; }; - - longhorn.persistentVolumeClaim = { - data = { - volumeName = "attic"; - storage = "15Gi"; - }; - - database = { - volumeName = "attic-db"; - storage = "150Mi"; - }; - }; }; }; } diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index f62dfc4..a837e3e 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -88,8 +88,6 @@ lab = { longhorn.persistentVolume = { kitchenowl.storage = "100Mi"; - attic.storage = "15Gi"; - attic-db.storage = "150Mi"; minecraft.storage = "1Gi"; authentik-db.storage = "10Gi"; authentik-redis.storage = "5Gi";