2024-05-20 15:47:49 +00:00
|
|
|
{ lib, nixhelm, system, ... }: {
|
2024-05-18 21:32:58 +00:00
|
|
|
config = {
|
|
|
|
kubernetes = {
|
|
|
|
resources = {
|
|
|
|
ingresses.longhorn = {
|
|
|
|
metadata.annotations = {
|
|
|
|
"cert-manager.io/cluster-issuer" = "letsencrypt";
|
|
|
|
"traefik.ingress.kubernetes.io/router.entrypoints" = "localsecure";
|
|
|
|
};
|
|
|
|
|
|
|
|
spec = {
|
|
|
|
ingressClassName = "traefik";
|
|
|
|
|
|
|
|
rules = [{
|
|
|
|
host = "longhorn.kun.is";
|
|
|
|
|
|
|
|
http.paths = [{
|
|
|
|
path = "/";
|
|
|
|
pathType = "Prefix";
|
|
|
|
|
|
|
|
backend.service = {
|
|
|
|
name = "longhorn-frontend";
|
|
|
|
port.number = 80;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}];
|
|
|
|
|
|
|
|
tls = [{
|
|
|
|
secretName = "longhorn-tls";
|
|
|
|
hosts = [ "longhorn.kun.is" ];
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
2024-05-20 15:47:49 +00:00
|
|
|
|
|
|
|
recurringJobs.backup-nfs.spec = {
|
|
|
|
cron = "0 1 * * *"; # One o'clock at night
|
|
|
|
task = "backup";
|
|
|
|
retain = 2; # We don't need many, as we also make Borg backups.
|
|
|
|
concurrency = 1;
|
|
|
|
};
|
2024-05-18 21:32:58 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|