nixos-servers/kubenix-modules/traefik.nix

31 lines
828 B
Nix
Raw Normal View History

2024-05-09 19:03:27 +00:00
{ lib, myLib, ... }: {
2024-04-13 14:37:18 +00:00
kubernetes.resources.helmChartConfigs = {
traefik = {
metadata.namespace = "kube-system";
# Override Traefik's service with a static load balancer IP.
# Create endpoint for HTTPS on port 444.
2024-04-13 14:37:18 +00:00
# Allow external name services for esrom.
2024-05-09 19:03:27 +00:00
spec.valuesContent = lib.generators.toYAML { } {
service.spec.annotations."metallb.universe.tf/loadBalancerIPs" = myLib.globals.traefikIPv4;
providers.kubernetesIngress.allowExternalNameServices = true;
ports.localsecure = {
port = 8444;
expose = true;
exposedPort = 444;
protocol = "TCP";
tls = {
enabled = true;
options = "";
certResolver = "";
domains = [ ];
};
};
};
2024-04-13 14:37:18 +00:00
};
};
}