kubernetes/pkg/kubelet/kuberuntime
Kubernetes Submit Queue 78c820803c Merge pull request #50350 from dashpole/eviction_container_deletion
Automatic merge from submit-queue (batch tested with PRs 51186, 50350, 51751, 51645, 51837)

Wait for container cleanup before deletion

We should wait to delete pod API objects until the pod's containers have been cleaned up. See issue: #50268 for background.

This changes the kubelet container gc, which deletes containers belonging to pods considered "deleted".
It adds two conditions under which a pod is considered "deleted", allowing containers to be deleted:
Pods where deletionTimestamp is set, and containers are not running
Pods that are evicted

This PR also changes the function PodResourcesAreReclaimed by making it return false if containers still exist.
The eviction manager will wait for containers of previous evicted pod to be deleted before evicting another pod.
The status manager will wait for containers to be deleted before removing the pod API object.

/assign @vishh
2017-09-05 17:30:03 -07:00
..
BUILD Un-revert "CPU manager wiring and none policy" 2017-09-04 07:24:59 -07:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go Merge pull request #50350 from dashpole/eviction_container_deletion 2017-09-05 17:30:03 -07:00
helpers_test.go follow our go code style: error->err 2017-07-07 09:34:38 +08:00
helpers.go Rename runtime/default to docker default 2017-08-13 15:42:15 +08:00
instrumented_services_test.go Improving test coverage for kubelet/kuberuntime. 2017-06-01 09:43:15 +02:00
instrumented_services.go add UpdateContainerResources function to CRI 2017-07-31 20:47:56 -05:00
kuberuntime_container_test.go Do not try run preStop hook when the gracePeriod is 0 2017-08-03 07:57:21 +05:30
kuberuntime_container.go Merge pull request #50350 from dashpole/eviction_container_deletion 2017-09-05 17:30:03 -07:00
kuberuntime_gc_test.go wait for container cleanup before deletion 2017-09-04 17:38:09 -07:00
kuberuntime_gc.go wait for container cleanup before deletion 2017-09-04 17:38:09 -07:00
kuberuntime_image_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_image.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_logs_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_logs.go Use local JSON log buffer in parseDockerJSONLog. 2017-08-09 12:41:15 -04:00
kuberuntime_manager_test.go Refactor kuberuntime test case with sets.String 2017-08-22 19:43:18 +08:00
kuberuntime_manager.go Merge pull request #50350 from dashpole/eviction_container_deletion 2017-09-05 17:30:03 -07:00
kuberuntime_sandbox_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_sandbox.go Support seccomp profile from container's security context 2017-08-13 15:42:15 +08:00
labels_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels.go run hack/update-all 2017-06-22 11:31:03 -07:00
legacy_test.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
security_context.go Support seccomp profile from container's security context 2017-08-13 15:42:15 +08:00