2024-05-09 19:03:27 +00:00
|
|
|
{ lib, myLib, ... }: {
|
2024-07-17 12:26:17 +00:00
|
|
|
kubernetes.resources = {
|
|
|
|
helmChartConfigs = {
|
|
|
|
traefik = {
|
|
|
|
# Override Traefik's service with a static load balancer IP.
|
|
|
|
# Create endpoint for HTTPS on port 444.
|
|
|
|
# Allow external name services for servers in LAN.
|
|
|
|
spec.valuesContent = lib.generators.toYAML { } {
|
|
|
|
providers.kubernetesIngress.allowExternalNameServices = true;
|
|
|
|
service.loadBalancerIP = myLib.globals.traefikIPv4;
|
|
|
|
|
2024-07-22 18:36:28 +00:00
|
|
|
ports = {
|
|
|
|
localsecure = {
|
|
|
|
port = 8444;
|
|
|
|
expose = true;
|
|
|
|
exposedPort = 444;
|
|
|
|
protocol = "TCP";
|
|
|
|
|
|
|
|
tls = {
|
|
|
|
enabled = true;
|
|
|
|
options = "";
|
|
|
|
certResolver = "";
|
|
|
|
domains = [ ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-24 19:54:31 +00:00
|
|
|
web.redirectTo.port = "websecure";
|
2024-07-22 18:36:28 +00:00
|
|
|
};
|
2024-07-17 12:26:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-24 19:43:50 +00:00
|
|
|
services.esrom.spec = {
|
|
|
|
type = "ExternalName";
|
|
|
|
externalName = "esrom.dmz";
|
2024-05-12 08:28:08 +00:00
|
|
|
|
2024-07-24 19:43:50 +00:00
|
|
|
ports.web = {
|
|
|
|
port = 80;
|
|
|
|
targetPort = 80;
|
2024-07-17 12:26:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
lab.ingresses = {
|
|
|
|
ek2024 = {
|
|
|
|
host = "ek2024.kun.is";
|
|
|
|
|
|
|
|
service = {
|
|
|
|
name = "ek2024";
|
|
|
|
portName = "web";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
esrom = {
|
|
|
|
host = "esrom.kun.is";
|
|
|
|
|
|
|
|
service = {
|
|
|
|
name = "esrom";
|
|
|
|
portName = "web";
|
|
|
|
};
|
2024-04-13 14:37:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|