k8s v1.16版本中NodeController已经分为了NodeIpamController与NodeLifecycleController,本文主要介绍NodeLifecycleController。 NodeLifecycleController主要功能有: (1)定期检查node的心跳上报,某个node间隔一定时间都没有心跳上报时,更新node的ready condition值为false或unknown,开启了污点驱逐的情况下,给该node添加NoExecute的...
node_lifecycle_controller.go var(// UnreachableTaintTemplate is the taint for when a node becomes unreachable.UnreachableTaintTemplate=&v1.Taint{Key:v1.TaintNodeUnreachable,Effect:v1.TaintEffectNoExecute,}// NotReadyTaintTemplate is the taint for when a node is not ready for// executing podsNotR...
but not genericconfig.typeKubeCloudSharedConfigurationstruct{// nodeMonitorPeriod is the period for syncing NodeStatus in NodeController.// 通过--node-monitor-period 设置,默认为 5s,表示在 NodeController 中同步NodeStatus 的周期,多长时间Controller检查一次。这个...