nixos-servers/kubenix-modules/esrom.nix

41 lines
758 B
Nix
Raw Normal View History

2024-04-13 14:37:18 +00:00
{
kubernetes.resources = {
services.esrom.spec = {
type = "ExternalName";
externalName = "esrom.dmz";
2024-04-14 19:43:31 +00:00
ports.web = {
2024-04-13 14:37:18 +00:00
port = 80;
targetPort = 80;
2024-04-14 19:43:31 +00:00
};
2024-04-13 14:37:18 +00:00
};
ingresses.esrom = {
metadata.annotations."cert-manager.io/cluster-issuer" = "letsencrypt";
spec = {
ingressClassName = "traefik";
rules = [{
host = "esrom.kun.is";
http.paths = [{
path = "/";
pathType = "Prefix";
backend.service = {
name = "esrom";
2024-04-14 19:43:31 +00:00
port.name = "web";
2024-04-13 14:37:18 +00:00
};
}];
}];
tls = [{
secretName = "esrom-tls";
hosts = [ "esrom.kun.is" ];
}];
};
};
};
}