Production-Grade Container Scheduling and Management
Go to file
Dan Williams 8c16260160 kubelet: fix inconsistent display of terminated pod IPs by using events instead
PLEG and kubelet race when reading and sending pod status to the apiserver.  PLEG
inserts status into a cache, and then signals kubelet.  Kubelet then eventually
reads the status out of that cache, but in the mean time the status could have
been changed by PLEG.

When a pod exits, pod status will no longer include the pod's IP address because
the network plugin/runtime will report "" for terminated pod IPs.  If this status
gets inserted into the PLEG cache before kubelet gets the status out of the cache,
kubelet will see a blank pod IP address.  This happens in about 1/5 of cases when
pods are short-lived, and somewhat less frequently for longer running pods.

To ensure consistency for properties of dead pods, copy an old status update's
IP address over to the new status update if (a) the new status update's IP is
missing and (b) all sandboxes of the pod are dead/not-ready (eg, no possibility
for a valid IP from the sandbox).

Fixes: https://github.com/kubernetes/kubernetes/issues/47265
2017-07-21 09:52:10 -05:00
.github Merge pull request #46714 from castrojo/new-issue-template 2017-06-22 16:43:47 -07:00
api autogenerated files 2017-07-18 17:47:57 -07:00
build Fixup go2idl references 2017-07-20 07:41:37 +02:00
cluster Merge pull request #49229 from shyamjvs/remove-old-logdump 2017-07-20 12:55:44 -07:00
cmd Merge pull request #48810 from sttts/sttts-fuzzer-cleanup 2017-07-20 07:20:40 -07:00
docs autogenerated files 2017-07-18 17:47:57 -07:00
examples Update wordpress to 4.8.0 2017-07-20 10:08:49 +08:00
federation Merge pull request #48377 from bsalamat/priority_class 2017-07-19 19:04:29 -07:00
Godeps bump(k8s.io/gengo): 712a17394a0980fabbcf3d968972e185d80c0fa4 2017-07-18 07:59:40 +02:00
hack Merge pull request #49229 from shyamjvs/remove-old-logdump 2017-07-20 12:55:44 -07:00
logo
pkg kubelet: fix inconsistent display of terminated pod IPs by using events instead 2017-07-21 09:52:10 -05:00
plugin Merge pull request #36238 from resouer/eclass-2-dev 2017-07-19 01:57:32 -07:00
staging Merge pull request #49276 from CaoShuFeng/audit_doc_trival 2017-07-20 08:13:06 -07:00
test Merge pull request #49209 from crassirostris/sd-logging-e2e-soak-test-logging-fix 2017-07-20 05:26:42 -07:00
third_party Merge pull request #47614 from mengqiy/fix_naming 2017-07-19 21:51:49 -07:00
translations removed 'Storage' option from 'kubectl top' like options 2017-06-23 08:34:53 -07:00
vendor Fixup go2idl references 2017-07-20 07:41:37 +02:00
.bazelrc move build related files out of the root directory 2017-05-15 15:53:54 -07:00
.generated_files
.gitattributes
.gitignore
.kazelcfg.json Switch from gazel to kazel, and move kazelcfg into build/root 2017-07-18 12:48:51 -07:00
BUILD.bazel move build related files out of the root directory 2017-05-15 15:53:54 -07:00
CHANGELOG.md Merge pull request #48897 from nicksardo/known-issue-1.7 2017-07-13 23:39:10 -07:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml Update labels.yaml 2017-07-11 11:21:18 -07:00
LICENSE
Makefile move build related files out of the root directory 2017-05-15 15:53:54 -07:00
Makefile.generated_files move build related files out of the root directory 2017-05-15 15:53:54 -07:00
OWNERS Add jregan to OWNERS for kubectl isolation work. 2017-05-30 14:32:48 -07:00
OWNERS_ALIASES update cli owner 2017-07-18 12:58:22 -07:00
README.md
Vagrantfile
WORKSPACE move build related files out of the root directory 2017-05-15 15:53:54 -07:00

Kubernetes

Submit Queue Widget GoDoc Widget


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

If you are less impatient, 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