Move caches off longhorn
This commit is contained in:
parent
b52262792d
commit
850af1b1bf
4 changed files with 18 additions and 41 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue