Clarify eviction based on allocated pods

This commit is contained in:
Tim Allclair 2024-10-25 13:53:11 -07:00
parent c75a3e717e
commit b186c160ca

View File

@ -1568,6 +1568,7 @@ func (kl *Kubelet) initializeRuntimeDependentModules() {
os.Exit(1)
}
// eviction manager must start after cadvisor because it needs to know if the container runtime has a dedicated imagefs
// Eviction decisions are based on the allocated (rather than desired) pod resources.
kl.evictionManager.Start(kl.StatsProvider, kl.getAllocatedPods, kl.PodIsFinished, evictionMonitoringPeriod)
// container log manager must start after container runtime is up to retrieve information from container runtime