Move hedgedoc off Longhorn

This commit is contained in:
Pim Kunis 2025-05-26 20:42:45 +02:00
parent 360cb2917f
commit 0a074b1100
2 changed files with 13 additions and 16 deletions

View file

@ -41,6 +41,8 @@
};
spec = {
nodeName = "jefke";
containers.hedgedoc = {
image = globals.images.hedgedoc;
ports.web.containerPort = 3000;
@ -90,8 +92,12 @@
};
volumes = {
uploads.persistentVolumeClaim.claimName = "uploads";
config.configMap.name = "hedgedoc-config";
uploads.hostPath = {
path = "/mnt/longhorn/persistent/volumes/hedgedoc-uploads";
type = "Directory";
};
};
securityContext = {
@ -124,6 +130,8 @@
};
spec = {
nodeName = "jefke";
containers.postgres = {
image = globals.images.postgres15;
imagePullPolicy = "IfNotPresent";
@ -148,7 +156,10 @@
];
};
volumes.database.persistentVolumeClaim.claimName = "database";
volumes.database.hostPath = {
path = "/mnt/longhorn/persistent/volumes/hedgedoc-db";
type = "Directory";
};
};
};
};
@ -190,18 +201,6 @@
portName = "web";
};
};
longhorn.persistentVolumeClaim = {
uploads = {
volumeName = "hedgedoc-uploads";
storage = "50Mi";
};
database = {
volumeName = "hedgedoc-db";
storage = "100Mi";
};
};
};
};
}