Move attic off longhorn

This commit is contained in:
Pim Kunis 2025-05-28 21:52:10 +02:00
parent 6aa41c082f
commit f5cff1bbb3
2 changed files with 13 additions and 16 deletions

View file

@ -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";
};
};
};
};
}

View file

@ -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";