Production-Grade Container Scheduling and Management
Go to file
Clayton Coleman ad3d8949f0
kubelet: Preserve existing container status when pod terminated
The kubelet must not allow a container that was reported failed in a
restartPolicy=Never pod to be reported to the apiserver as success.
If a client deletes a restartPolicy=Never pod, the dispatchWork and
status manager race to update the container status. When dispatchWork
(specifically podIsTerminated) returns true, it means all containers
are stopped, which means status in the container is accurate. However,
the TerminatePod method then clears this status. This results in a
pod that has been reported with status.phase=Failed getting reset to
status.phase.Succeeded, which is a violation of the guarantees around
terminal phase.

Ensure the Kubelet never reports that a container succeeded when it
hasn't run or been executed by guarding the terminate pod loop from
ever reporting 0 in the absence of container status.
2020-03-04 13:34:24 -05:00
.github Add kind/flake issue template 2019-12-09 16:06:17 -08:00
api Merge pull request #88654 from ddebroy/gmsa-disable1 2020-03-04 02:32:01 -08:00
build Update to golang@1.13.8 2020-02-27 09:27:48 +02:00
CHANGELOG Add CHANGELOG/CHANGELOG-1.18.md for v1.18.0-beta.1 2020-02-26 13:27:05 +00:00
cluster Merge pull request #88598 from jennybuckley/base-image 2020-03-03 23:17:47 -08:00
cmd Merge pull request #88745 from mborsz/slice3 2020-03-03 03:03:38 -08:00
docs
Godeps vendor network proxy client 2020-02-20 10:19:38 -08:00
hack Merge pull request #88758 from soltysh/hide_last_applied 2020-03-03 21:06:01 -08:00
logo
pkg kubelet: Preserve existing container status when pod terminated 2020-03-04 13:34:24 -05:00
plugin Adding IngressClass to networking/v1beta1 2020-03-01 18:17:09 -08:00
staging Merge pull request #86173 from soltysh/cli_defaults 2020-03-04 07:23:47 -08:00
test Test that an always-fail container can't report the pod Succeeded 2020-03-04 13:34:20 -05:00
third_party
translations update translation 2020-02-06 10:25:22 +09:00
vendor Merge pull request #88758 from soltysh/hide_last_applied 2020-03-03 21:06:01 -08:00
.bazelrc
.bazelversion
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG.md CHANGELOG: Move changelog, soft-link to top-level, refresh listing 2020-02-06 01:04:44 -05:00
code-of-conduct.md
CONTRIBUTING.md
go.mod Merge pull request #88049 from mtaufen/provider-info-agnhost 2020-03-04 03:43:47 -08:00
go.sum Update dep k8s.io/utils to 0a110f9eb7ab 2020-03-03 11:20:08 -08:00
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES build: Add OWNERS on build-image/ 2020-02-26 16:51:01 -05:00
README.md
SECURITY_CONTACTS
SUPPORT.md
WORKSPACE

Kubernetes

GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts. It provides 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 your company 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 use Kubernetes code as a library in other applications, see the list of published components. Use of the k8s.io/kubernetes module or k8s.io/kubernetes/... packages as libraries is not supported.

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.
mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
git clone https://github.com/kubernetes/kubernetes
cd 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