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 = {
|
lab = {
|
||||||
longhorn.persistentVolumeClaim = {
|
|
||||||
db = {
|
|
||||||
volumeName = "authentik-db";
|
|
||||||
storage = "10Gi";
|
|
||||||
};
|
|
||||||
|
|
||||||
redis = {
|
|
||||||
volumeName = "authentik-redis";
|
|
||||||
storage = "5Gi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ingresses.authentik = {
|
ingresses.authentik = {
|
||||||
host = "authentik.kun.is";
|
host = "authentik.kun.is";
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
spec = {
|
spec = {
|
||||||
volumes.cache.persistentVolumeClaim.claimName = "cache";
|
volumes.cache.hostPath = {
|
||||||
|
path = "/tmp/immich-ml-cache";
|
||||||
|
type = "DirectoryOrCreate";
|
||||||
|
};
|
||||||
|
|
||||||
containers.machine-learning = {
|
containers.machine-learning = {
|
||||||
image = globals.images.immich-machine-learning;
|
image = globals.images.immich-machine-learning;
|
||||||
|
@ -258,11 +261,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
persistentVolumeClaims.cache.spec = {
|
|
||||||
accessModes = ["ReadWriteOnce"];
|
|
||||||
resources.requests.storage = "5Gi";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
lab = {
|
lab = {
|
||||||
|
|
|
@ -74,7 +74,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
cache.persistentVolumeClaim.claimName = "jellyfin-cache";
|
cache.hostPath = {
|
||||||
|
path = "/tmp/jellyfin-cache";
|
||||||
|
type = "DirectoryOrCreate";
|
||||||
|
};
|
||||||
|
|
||||||
music.hostPath = {
|
music.hostPath = {
|
||||||
path = "/mnt/longhorn/persistent/music";
|
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 = {
|
lab = {
|
||||||
|
|
|
@ -48,13 +48,20 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
cache.persistentVolumeClaim.claimName = "cache";
|
|
||||||
attachment-cache.persistentVolumeClaim.claimName = "attachment-cache";
|
|
||||||
|
|
||||||
data.hostPath = {
|
data.hostPath = {
|
||||||
path = "/mnt/longhorn/persistent/volumes/ntfy";
|
path = "/mnt/longhorn/persistent/volumes/ntfy";
|
||||||
type = "Directory";
|
type = "Directory";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cache.hostPath = {
|
||||||
|
path = "/tmp/ntfy-cache";
|
||||||
|
type = "DirectoryOrCreate";
|
||||||
|
};
|
||||||
|
|
||||||
|
attachment-cache.hostPath = {
|
||||||
|
path = "/tmp/ntfy-attachment-cache";
|
||||||
|
type = "DirectoryOrCreate";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
securityContext = {
|
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 = {
|
services.ntfy.spec = {
|
||||||
selector.app = "ntfy";
|
selector.app = "ntfy";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue