kubernetes/pkg/kubelet/container
Clayton Coleman 8722c834e5
kubelet: Never restart containers in deleting pods
When constructing the API status of a pod, if the pod is marked for
deletion no containers should be started. Previously, if a container
inside of a terminating pod failed to start due to a container
runtime error (that populates reasonCache) the reasonCache would
remain populated (it is only updated by syncPod for non-terminating
pods) and the delete action on the pod would be delayed until the
reasonCache entry expired due to other pods.

This dramatically reduces the amount of time the Kubelet waits to
delete pods that are terminating and encountered a container runtime
error.
2020-03-04 13:34:25 -05:00
..
testing Merge pull request #83123 from aramase/dualstack-downward-api 2019-11-14 22:13:42 -08:00
BUILD Remove recorder.PastEventf method 2019-12-30 12:00:23 -05:00
cache_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
cache.go fix typo in /pkg/kubelet/container 2019-05-31 18:50:39 +08:00
container_gc.go Move from glog to klog 2018-11-10 07:50:31 -05:00
container_hash_test.go Omit nil or empty field when calculating hash value 2019-08-22 13:46:52 +08:00
container_reference_manager.go revert workaround in PR 46246 as APIs have been consistent 2017-07-09 20:38:01 +08:00
helpers_test.go kubelet: Never restart containers in deleting pods 2020-03-04 13:34:25 -05:00
helpers.go kubelet: Never restart containers in deleting pods 2020-03-04 13:34:25 -05:00
os.go small nit in the annotations 2017-12-12 14:30:24 +08:00
ref_test.go Fix GetReference function 2019-08-07 16:49:29 +02:00
ref.go Add support for ephemeral containers to the kubelet 2019-07-24 16:24:26 +00:00
resize.go Use range in loops; misc fixes 2018-03-29 22:55:25 +11:00
runtime_cache_fake.go
runtime_cache_test.go
runtime_cache.go
runtime.go Windows: Fixes termination-file mounting for containerd 2019-11-12 23:33:55 -08:00
sync_result_test.go go-1.12: fix 'go vet' failures 2019-03-01 18:48:17 +02:00
sync_result.go Clean up error messages (ST1005) 2019-08-21 10:40:21 -07:00