fix: gate kubelet startup until kubeadm config exists
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user