![]() The pod worker is the owner of when a container is running or not, and the start and stop of the probes for a given pod should be handled during the pod sync loop. This ensures that probes do not continue running even after eviction. Because the pod semantics allow lifecycle probes to shorten grace period, the probe is removed after the containers in a pod are terminated successfully. As an optimization, if the pod will have a very short grace period (0 or 1 seconds) we stop the probes immediately to reduce resource usage during eviction slightly. After this change, the probe manager is only called by the pod worker or by the reconcile loop. |
||
---|---|---|
.. | ||
systemd | ||
nodeshutdown_manager_linux_test.go | ||
nodeshutdown_manager_linux.go | ||
nodeshutdown_manager_others.go | ||
nodeshutdown_manager.go | ||
storage_test.go | ||
storage.go |