mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Report node not ready on failed PLEG health check
This commit is contained in:
parent
7d4383c6e1
commit
5bb43a3a24
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user