fix: gate kubelet startup until kubeadm config exists
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled

This commit is contained in:
2026-03-02 08:39:22 +00:00
parent 388b0c4f5d
commit 7c849ed019

View File

@@ -230,6 +230,7 @@ in
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "containerd.service" "network-online.target" ];
unitConfig.ConditionPathExists = "/var/lib/kubelet/config.yaml";
serviceConfig = {
Environment = "KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml";
EnvironmentFile = [