fix: prevent kubelet auto-start during rebuild
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled

Add wantedBy = [] to prevent kubelet from being started by multi-user.target
during nixos-rebuild switch. This allows rebuilds to succeed even when the
cluster is in a transitional state. Kubelet will be started by kubeadm
init/join commands instead.
This commit is contained in:
2026-03-02 12:13:05 +00:00
parent ab5cc8b01d
commit 93e43a546f

View File

@@ -227,6 +227,7 @@ in
systemd.services.kubelet = {
description = "Kubernetes Kubelet";
wantedBy = lib.mkForce [];
wants = [ "network-online.target" ];
after = [ "containerd.service" "network-online.target" ];
unitConfig.ConditionPathExists = "/var/lib/kubelet/config.yaml";