kubernetes/pkg/kubelet
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
..
apis Merge pull request #108847 from adisky/update-credential-api 2022-03-24 20:05:53 -07:00
cadvisor Regen mocks using go 1.18 2022-03-23 10:19:38 -07:00
certificate fix copylock vet errors in component-base metrics 2022-03-31 15:07:11 +00:00
checkpointmanager remove fakefs to drop spf13/afero dependency 2021-06-24 09:51:34 -04:00
client Merge pull request #96004 from serathius/datapolicy-kubelet-pkg 2022-03-04 15:34:51 -08:00
cloudresource
cm Merge pull request #109692 from yxxhero/remove_ioutil_in_kubelet 2022-06-03 09:30:51 -07:00
config Mark pod-infra-container-image flag as deprecated 2022-02-14 09:11:51 +02:00
configmap Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
container Regen mocks using go 1.18 2022-03-23 10:19:38 -07:00
cri Merge pull request #107122 from songlh/fixing-5 2022-05-05 16:28:41 -07:00
custommetrics
envvars
events kubelet: add shutdown events 2021-06-23 16:44:19 -05:00
eviction Regen mocks using go 1.18 2022-03-23 10:19:38 -07:00
images Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
kubeletconfig remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
kuberuntime Merge pull request #109692 from yxxhero/remove_ioutil_in_kubelet 2022-06-03 09:30:51 -07:00
leaky
lifecycle Check taint/toleration before accepting pods, except for static pods 2022-02-10 19:39:26 +09:00
logs remove ioutil in kubelet 2022-04-27 21:08:42 +08:00
metrics Merge pull request #108758 from fengzixu/improvement-volume-health 2022-03-29 17:35:34 -07:00
network kubelet: parseResolvConf: Handle "search ." 2022-04-12 15:39:31 -04:00
nodeshutdown kubelet: Pod probes should be handled by pod worker 2022-06-06 17:00:54 -05:00
nodestatus Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
oom generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
pleg enhance and fix log calls 2022-03-24 11:13:50 +01:00
pluginmanager Fix typo in pkg/kubelet/pluginmanager/cache/actual_state_of_world 2022-02-24 16:20:24 -05:00
pod Regen mocks using go 1.18 2022-03-23 10:19:38 -07:00
preemption migrated preemption.go, stateful.go, resource_allocation.go to structured logging 2021-11-08 22:52:47 +05:30
prober kubelet: Pod probes should be handled by pod worker 2022-06-06 17:00:54 -05:00
qos
runtimeclass
secret Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
server Merge pull request #108758 from fengzixu/improvement-volume-health 2022-03-29 17:35:34 -07:00
stats Merge pull request #108787 from 249043822/cadvisor_stat_provider_filter_0 2022-05-20 16:50:00 -07:00
status add pod util to verify pod is terminal 2022-05-27 06:42:39 +02:00
sysctl Remove PodSecurityPolicy admission plugin 2022-05-04 16:00:56 -04:00
token Merge pull request #99685 from yangjunmyfm192085/run-test24 2022-05-03 17:16:47 -07:00
types Clean up dockershim flags in the kubelet 2022-01-14 16:02:50 +02:00
util Fix leaking goroutines in kubelet integration test 2022-05-23 11:50:29 +02:00
volumemanager Merge pull request #108997 from dobsonj/issue79980 2022-06-03 18:08:20 -07:00
winstats add bootid support for windows node. 2022-03-18 02:17:52 +00:00
active_deadline_test.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
active_deadline.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
doc.go
errors.go
kubelet_getters_test.go
kubelet_getters.go remove ioutil in kubelet 2022-04-27 21:08:42 +08:00
kubelet_network_linux.go Create a KUBE-IPTABLES-HINT chain for other components 2022-03-27 14:12:36 -04:00
kubelet_network_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_network_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_network.go Move iptables consts to kubelet_network_linux.go. 2022-03-26 11:22:51 -04:00
kubelet_node_status_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_node_status_test.go Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
kubelet_node_status_windows.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_node_status.go migrate --register-with-taints to KubeletConfiguration 2021-11-16 19:10:36 +08:00
kubelet_pods_linux_test.go Clean up logic for deprecated flag --container-runtime in kubelet 2022-02-10 13:26:59 +02:00
kubelet_pods_test.go Revert "Field status.hostIPs added for Pod (#101566)" 2022-03-31 12:39:45 +00:00
kubelet_pods_windows_test.go Clean up logic for deprecated flag --container-runtime in kubelet 2022-02-10 13:26:59 +02:00
kubelet_pods.go kubelet: Pod probes should be handled by pod worker 2022-06-06 17:00:54 -05:00
kubelet_resources_test.go
kubelet_resources.go
kubelet_test.go Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
kubelet_volumes_linux_test.go remove ioutil in kubelet 2022-04-27 21:08:42 +08:00
kubelet_volumes_test.go kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
kubelet_volumes.go remove ioutil in kubelet 2022-04-27 21:08:42 +08:00
kubelet.go kubelet: Pod probes should be handled by pod worker 2022-06-06 17:00:54 -05:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
pod_container_deletor_test.go
pod_container_deletor.go
pod_workers_test.go Merge pull request #105599 from jonyhy96/fix-pod-workers-test 2022-04-02 06:50:09 -07:00
pod_workers.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
reason_cache_test.go
reason_cache.go
runonce_test.go kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
runonce.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
runtime.go
time_cache_test.go
time_cache.go
volume_host.go use node informer to check volumes attachment status before backoff 2021-12-20 11:57:05 -05:00