Files
infrastructure/nix/modules/k3s.nix
2026-01-24 14:22:55 -07:00

34 lines
697 B
Nix

{ ... }:
{
services.k3s = {
enable = true;
role = "server";
extraFlags = toString [
"--disable=traefik"
"--node-ip=100.122.128.107"
"--bind-address 100.122.128.107"
"--node-external-ip 100.122.128.107"
"--tls-san 100.122.128.107"
# Disable disk-based evictions
"--kubelet-arg=eviction-hard="
"--kubelet-arg=eviction-soft="
"--kubelet-arg=eviction-soft-grace-period="
"--kubelet-arg=eviction-pressure-transition-period=0s"
];
serverAddr = "https://100.122.128.107:6443";
};
networking.firewall.allowedTCPPorts = [
443
80
10250
];
networking.firewall.allowedUDPPorts = [
443
80
];
}