fix: prevent kubelet auto-start during rebuild
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user