Log the condition when node becomes not ready

This improves debuggability.
This commit is contained in:
Yu-Ju Hong 2016-11-30 11:48:38 -08:00
parent 878ba91d7a
commit b216080980

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)
}
}
}