Move caches off longhorn
This commit is contained in:
parent
b52262792d
commit
850af1b1bf
4 changed files with 18 additions and 41 deletions
|
@ -89,18 +89,6 @@
|
|||
};
|
||||
|
||||
lab = {
|
||||
longhorn.persistentVolumeClaim = {
|
||||
db = {
|
||||
volumeName = "authentik-db";
|
||||
storage = "10Gi";
|
||||
};
|
||||
|
||||
redis = {
|
||||
volumeName = "authentik-redis";
|
||||
storage = "5Gi";
|
||||
};
|
||||
};
|
||||
|
||||
ingresses.authentik = {
|
||||
host = "authentik.kun.is";
|
||||
|
||||
|
|
|
@ -94,7 +94,10 @@
|
|||
};
|
||||
|
||||
spec = {
|
||||
volumes.cache.persistentVolumeClaim.claimName = "cache";
|
||||
volumes.cache.hostPath = {
|
||||
path = "/tmp/immich-ml-cache";
|
||||
type = "DirectoryOrCreate";
|
||||
};
|
||||
|
||||
containers.machine-learning = {
|
||||
image = globals.images.immich-machine-learning;
|
||||
|
@ -258,11 +261,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
persistentVolumeClaims.cache.spec = {
|
||||
accessModes = ["ReadWriteOnce"];
|
||||
resources.requests.storage = "5Gi";
|
||||
};
|
||||
};
|
||||
|
||||
lab = {
|
||||
|
|
|
@ -74,7 +74,10 @@ in {
|
|||
};
|
||||
|
||||
volumes = {
|
||||
cache.persistentVolumeClaim.claimName = "jellyfin-cache";
|
||||
cache.hostPath = {
|
||||
path = "/tmp/jellyfin-cache";
|
||||
type = "DirectoryOrCreate";
|
||||
};
|
||||
|
||||
music.hostPath = {
|
||||
path = "/mnt/longhorn/persistent/music";
|
||||
|
@ -587,13 +590,6 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
persistentVolumeClaims.jellyfin-cache = lib.mkIf cfg.jellyfin.enable {
|
||||
spec = {
|
||||
accessModes = ["ReadWriteOnce"];
|
||||
resources.requests.storage = "20Gi";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lab = {
|
||||
|
|
|
@ -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