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

26 lines
487 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"
"--node-external-ip 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
];
}