Files
infrastructure/nix/modules/k3s.nix
2025-03-29 08:55:06 -06:00

25 lines
443 B
Nix

{ ... }:
{
services.k3s = {
enable = true;
role = "server";
extraFlags = toString [
# "--debug" # Optionally add additional args to k3s
"--disable=traefik"
"--bind-address 100.122.128.107"
"--tls-san 100.122.128.107"
];
serverAddr = "https://100.122.128.107:6443"
};
networking.firewall.allowedTCPPorts = [
443
80
];
networking.firewall.allowedUDPPorts = [
443
80
];
}