nix/denna: k3s: correct flags
Anirudh Oppiliappan x@icyphox.sh
Sun, 07 Jul 2024 10:27:07 +0300
2 files changed,
2 insertions(+),
3 deletions(-)
M
hosts/denna/configuration.nix
→
hosts/denna/configuration.nix
@@ -83,7 +83,6 @@ };
services.k3s = { enable = true; - extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=100.85.88.64 --node-ip=100.85.88.64 --node-external-ip=100.85.88.64"; role = "agent"; serverAddr = "https://sini:6443"; tokenFile = "/var/lib/rancher/k3s/agent/token";
M
hosts/sini/configuration.nix
→
hosts/sini/configuration.nix
@@ -97,9 +97,9 @@
# building only virtualisation.docker.enable = true; - services.k3s = { + services.k3s = let address = "100.85.88.64"; in { enable = true; - extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=100.85.88.64 --node-ip=100.85.88.64 --node-external-ip=100.85.88.64"; + extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=${address} --node-ip=${address} --node-external-ip=${address}"; }; services.dockerRegistry = {