Skip to content

Commit

Permalink
better log
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Oct 13, 2020
1 parent a1b3416 commit 1bc0626
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,8 @@ func (k *Bootstrapper) WaitForNode(cfg config.ClusterConfig, n config.Node, time

// ensureKubeletStarted will start kubelet if whatever reason it is stopped.
func (k *Bootstrapper) ensureKubeletStarted() error {
fmt.Println("inside ensureKubeletStarted")
if kverify.KubeletStatus(k.c) != state.Running {
fmt.Println("kubelet was not running for some reason , starting it...")
if st := kverify.KubeletStatus(k.c); st != state.Running {
glog.Warningf("surprisingly kubelet service status was %s!. will try start it... this a known issue https://github.com/kubernetes/minikube/issues/9458", st)
return sysinit.New(k.c).Start("kubelet")
}
return nil
Expand Down

0 comments on commit 1bc0626

Please sign in to comment.