Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 8eb7eeef39
Merge pull request #63321 from sjenning/fix-pod-deletor
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

 kubelet: force filterContainerID to empty string when removeAll is true 

fixes https://github.com/kubernetes/kubernetes/issues/57865

alternative to https://github.com/kubernetes/kubernetes/pull/62170

There is a bug in the container deletor where if `removeAll` is `true` in `deleteContainersInPod()` the `filterContainerID` is still used to filter results in `getContainersToDeleteInPod()`.  If the filter container is not found, no containers are returned for deletion.

https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/pod_container_deletor.go#L74-L77

This is the case for the delayed deletion a pod in `CrashLoopBackoff` as the death of the infra container in response to the `DELETE` is detected by PLEG and triggers an attempt to clean up all containers but uses the infra container id as a filter with `removeAll` set to `true`.  The infra container is immediately deleted and thus can not be found when `getContainersToDeleteInPod()` tries to find it.  Thus the dead app container from the previous restart attempt still exists.

`canBeDeleted()` in the status manager will return `false` until all the pod containers are deleted, delaying the deletion of the pod on the API server.

The removal of the containers is eventually forced by the API server `REMOVE` after the grace period.
2018-05-01 09:50:13 -07:00
.github
api Merge pull request #60741 from zlabjp/optional-subjects 2018-04-27 17:43:11 -07:00
build Merge pull request #63152 from mikedanese/break 2018-05-01 07:36:09 -07:00
cluster Merge pull request #63152 from mikedanese/break 2018-05-01 07:36:09 -07:00
cmd apiserver: change default reconciler to LeaseEndpoint 2018-04-30 10:06:44 -05:00
docs Merge pull request #60741 from zlabjp/optional-subjects 2018-04-27 17:43:11 -07:00
Godeps Upgrade Azure Go SDK to v14.6.0 2018-04-26 09:38:48 +08:00
hack Remove Factory from more Run commands 2018-04-30 19:58:54 +02:00
logo
pkg Merge pull request #63321 from sjenning/fix-pod-deletor 2018-05-01 09:50:13 -07:00
plugin remove incorrect static restmapper 2018-05-01 07:51:17 -04:00
staging Merge pull request #63206 from deads2k/api-11-restmapper 2018-05-01 08:10:37 -07:00
test Merge pull request #63206 from deads2k/api-11-restmapper 2018-05-01 08:10:37 -07:00
third_party
translations
vendor Upgrade Azure Go SDK to v14.6.0 2018-04-26 09:38:48 +08:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md
CHANGELOG-1.6.md
CHANGELOG-1.7.md
CHANGELOG-1.8.md
CHANGELOG-1.9.md
CHANGELOG-1.10.md Merge pull request #61874 from Pingan2017/changelog1-10 2018-04-29 07:45:43 -07:00
CHANGELOG-1.11.md
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Add myself to sig-scheduling maintainers/approvers list. 2018-04-26 14:15:14 -04:00
README.md
SUPPORT.md
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts; providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

For the full story, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide, and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics