Log the condition when node becomes not ready

This improves debuggability.
pull/6/head
Yu-Ju Hong 2016-11-30 11:48:38 -08:00
parent 878ba91d7a
commit b216080980
1 changed files with 1 additions and 0 deletions

View File

@ -648,6 +648,7 @@ func (kl *Kubelet) setNodeReadyCondition(node *v1.Node) {
kl.recordNodeStatusEvent(v1.EventTypeNormal, events.NodeReady)
} else {
kl.recordNodeStatusEvent(v1.EventTypeNormal, events.NodeNotReady)
glog.Infof("Node became not ready: %+v", newNodeReadyCondition)
}
}
}