fmt.Printf("[preflight] WARNING: unable to start the kubelet service: [%v]\n",err)
fmt.Printf("[kubelet-start] WARNING: unable to start the kubelet service: [%v]\n",err)
fmt.Printf("[preflight] please ensure kubelet is reloaded and running manually.\n")
fmt.Printf("[kubelet-start] please ensure kubelet is reloaded and running manually.\n")
}
}
}
}
...
@@ -48,16 +48,16 @@ func TryStopKubelet() {
...
@@ -48,16 +48,16 @@ func TryStopKubelet() {
// If we notice that the kubelet service is inactive, try to start it
// If we notice that the kubelet service is inactive, try to start it
initSystem,err:=initsystem.GetInitSystem()
initSystem,err:=initsystem.GetInitSystem()
iferr!=nil{
iferr!=nil{
fmt.Println("[preflight] no supported init system detected, won't make sure the kubelet not running for a short period of time while setting up configuration for it.")
fmt.Println("[kubelet-start] no supported init system detected, won't make sure the kubelet not running for a short period of time while setting up configuration for it.")
return
return
}
}
if!initSystem.ServiceExists("kubelet"){
if!initSystem.ServiceExists("kubelet"){
fmt.Println("[preflight] couldn't detect a kubelet service, can't make sure the kubelet not running for a short period of time while setting up configuration for it.")
fmt.Println("[kubelet-start] couldn't detect a kubelet service, can't make sure the kubelet not running for a short period of time while setting up configuration for it.")
}
}
// This runs "systemctl daemon-reload && systemctl stop kubelet"
// This runs "systemctl daemon-reload && systemctl stop kubelet"