Move caches off longhorn

This commit is contained in:
Pim Kunis 2025-05-29 12:24:49 +02:00
parent b52262792d
commit 850af1b1bf
4 changed files with 18 additions and 41 deletions

View file

@ -48,13 +48,20 @@
};
volumes = {
cache.persistentVolumeClaim.claimName = "cache";
attachment-cache.persistentVolumeClaim.claimName = "attachment-cache";
data.hostPath = {
path = "/mnt/longhorn/persistent/volumes/ntfy";
type = "Directory";
};
cache.hostPath = {
path = "/tmp/ntfy-cache";
type = "DirectoryOrCreate";
};
attachment-cache.hostPath = {
path = "/tmp/ntfy-attachment-cache";
type = "DirectoryOrCreate";
};
};
securityContext = {
@ -65,18 +72,6 @@
};
};
persistentVolumeClaims = {
cache.spec = {
accessModes = ["ReadWriteOnce"];
resources.requests.storage = "300Mi";
};
attachment-cache.spec = {
accessModes = ["ReadWriteOnce"];
resources.requests.storage = "500Mi";
};
};
services.ntfy.spec = {
selector.app = "ntfy";