From 360cb2917fe668a40efea183c6664740b480d20c Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 26 May 2025 20:16:50 +0200 Subject: [PATCH] Move ntfy off Longhorn --- modules/bootstrap-default.nix | 1 - modules/ntfy.nix | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index 862c1eb..e31a817 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -103,7 +103,6 @@ attic.storage = "15Gi"; attic-db.storage = "150Mi"; minecraft.storage = "1Gi"; - ntfy.storage = "300Mi"; authentik-db.storage = "10Gi"; authentik-redis.storage = "5Gi"; mealie.storage = "3Gi"; diff --git a/modules/ntfy.nix b/modules/ntfy.nix index d4f49f3..b911c75 100644 --- a/modules/ntfy.nix +++ b/modules/ntfy.nix @@ -24,6 +24,8 @@ metadata.labels.app = "ntfy"; spec = { + nodeName = "jefke"; + containers.ntfy = { image = utils.mkNixNGImage "ntfy"; ports.web.containerPort = 80; @@ -48,7 +50,11 @@ volumes = { cache.persistentVolumeClaim.claimName = "cache"; attachment-cache.persistentVolumeClaim.claimName = "attachment-cache"; - data.persistentVolumeClaim.claimName = "data"; + + data.hostPath = { + path = "/mnt/longhorn/persistent/volumes/ntfy"; + type = "Directory"; + }; }; securityContext = { @@ -90,11 +96,6 @@ portName = "web"; }; }; - - longhorn.persistentVolumeClaim.data = { - volumeName = "ntfy"; - storage = "300Mi"; - }; }; }; }