kubernetes/pkg/kubelet/nodeshutdown
Clayton Coleman 1d518adb76 kubelet: Pod probes should be handled by pod worker
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.
2022-06-06 17:00:54 -05:00
..
systemd generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
nodeshutdown_manager_linux_test.go Merge pull request #108193 from utkarsh348/myfeature 2022-03-27 05:55:21 -07:00
nodeshutdown_manager_linux.go kubelet: Pod probes should be handled by pod worker 2022-06-06 17:00:54 -05:00
nodeshutdown_manager_others.go Refactor to use structure to pass parameters 2021-10-15 11:16:21 +08:00
nodeshutdown_manager.go Support metrics for node shutdown 2022-03-11 17:31:10 +08:00
storage_test.go Add test for storage 2022-03-11 17:31:10 +08:00
storage.go Atomic write status file 2022-03-11 17:50:33 +08:00