From bf600987e93347693be4f87bafc0dc4bbd18c8e6 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sat, 10 Jan 2026 20:14:54 -0800 Subject: [PATCH] feat(john-endesktop): Add k3s node labels for workload scheduling Add fast-cpu and fast-storage labels since this node has a faster CPU than other cluster nodes and is the NFS host with fast local storage. Also add k3s-upgrade=disabled to exclude from system-upgrade-controller. --- machines/john-endesktop/configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/machines/john-endesktop/configuration.nix b/machines/john-endesktop/configuration.nix index ec20935..b0a075c 100644 --- a/machines/john-endesktop/configuration.nix +++ b/machines/john-endesktop/configuration.nix @@ -110,6 +110,15 @@ with lib; role = "agent"; # serverAddr defaults to https://10.0.0.222:6443 # tokenFile defaults to /etc/k3s/token + extraFlags = [ + # Node labels for workload scheduling + # fast-cpu: This node has a faster CPU than other cluster nodes + "--node-label=fast-cpu=true" + # fast-storage: This node is the NFS host with fast local storage access + "--node-label=fast-storage=true" + # k3s-upgrade=disabled: NixOS manages k3s upgrades via Nix, not system-upgrade-controller + "--node-label=k3s-upgrade=disabled" + ]; }; # Time zone