Report node not ready on failed PLEG health check
This commit is contained in:
@@ -683,6 +683,7 @@ func NewMainKubelet(kubeCfg *componentconfig.KubeletConfiguration, kubeDeps *Kub
|
|||||||
|
|
||||||
klet.pleg = pleg.NewGenericPLEG(klet.containerRuntime, plegChannelCapacity, plegRelistPeriod, klet.podCache, clock.RealClock{})
|
klet.pleg = pleg.NewGenericPLEG(klet.containerRuntime, plegChannelCapacity, plegRelistPeriod, klet.podCache, clock.RealClock{})
|
||||||
klet.runtimeState = newRuntimeState(maxWaitForContainerRuntime)
|
klet.runtimeState = newRuntimeState(maxWaitForContainerRuntime)
|
||||||
|
klet.runtimeState.addHealthCheck("PLEG", klet.pleg.Healthy)
|
||||||
klet.updatePodCIDR(kubeCfg.PodCIDR)
|
klet.updatePodCIDR(kubeCfg.PodCIDR)
|
||||||
|
|
||||||
// setup containerGC
|
// setup containerGC
|
||||||
|
Reference in New Issue
Block a user