Production-Grade Container Scheduling and Management
Go to file
Yu-Ju Hong c075719f05 Kubelet: fix the runtime cache to not cache the stale pods
If a pod worker sees stale pods from the runtime cache which were retrieved
before their last sync finished, it may think that the pod were not started
correctly, and attemp to fix that by killing/restarting containers.
There are two issues that may cause runtime cache to store stale pods:
  1. The timstamp is recorded *after* getting the pods from the container
     runtime. This may lead the consumer to think the pods are newer than they
     actually are.
  2. The cache updates are triggered by many goroutines (pod workers, and the
     updating thread). There is no mechanism to enforece that the cache would
     only be updated to newer pods.

This change fixes the above two issues by making sure one always record the
timestamp before getting pods from the container runtime, and updates the
cached pods only if the timestamp is newer.
2015-05-05 18:28:38 -07:00
api/swagger-spec Fix condition tags 2015-04-22 16:33:22 -04:00
build Merge pull request #7316 from ArtfulCoder/master_components_logs 2015-05-04 11:20:03 -07:00
cluster Merge pull request #7736 from justinsb/aws_fix_known_tokens_file 2015-05-04 14:34:11 -07:00
cmd Inject mounter into volume plugins 2015-05-04 11:28:57 -04:00
contrib Merge pull request #7722 from eparis/minor-bash-fixes 2015-05-04 13:03:26 -07:00
docs Merge pull request #7649 from brendandburns/example 2015-05-04 14:46:28 -07:00
examples Merge pull request #7649 from brendandburns/example 2015-05-04 14:46:28 -07:00
Godeps Merge pull request #7510 from eparis/cobra-rebase 2015-04-29 15:08:41 -07:00
hack Merge pull request #7629 from caesarxuchao/new-fix-7260-7491 2015-05-04 15:01:59 -04:00
hooks Do all boilerplate checks in 1 python call 2015-05-01 20:46:57 -04:00
pkg Kubelet: fix the runtime cache to not cache the stale pods 2015-05-05 18:28:38 -07:00
plugin Merge pull request #7597 from eparis/copyright 2015-05-01 17:01:39 -07:00
test Merge pull request #7732 from mbforbes/logSsh 2015-05-04 14:50:36 -07:00
third_party Increase maxIdleConnection limit in etcd client. 2015-04-28 09:50:56 +02:00
www fix typo 2015-04-21 15:46:52 -07:00
.gitignore initial commit of chrome only of new replacement web ui 2015-04-21 07:24:06 -07:00
.travis.yml Configurable log levels for integration tests. 2015-04-23 18:12:48 -07:00
CHANGELOG.md Update changelog. 2015-05-01 12:41:08 -07:00
CONTRIB.md
CONTRIBUTING.md
DESIGN.md Update docs. Add design principles. Fixes #6133. Fixes #4182. 2015-04-16 22:13:44 +00:00
LICENSE
logo_usage_guidelines.md
logo.pdf
logo.png
logo.svg
Makefile
README.md Update docs. Add design principles. Fixes #6133. Fixes #4182. 2015-04-16 22:13:44 +00:00
shippable.yml Configurable log levels for integration tests. 2015-04-23 18:12:48 -07:00
Vagrantfile Prevent Virtualbox Guest Additions from being updated, gcc is not installed on the image. 2015-04-25 06:33:40 +02:00

Kubernetes

GoDoc Travis Coverage Status

I am ...

  • Interested in learning more about using Kubernetes? Please see our user-facing documentation on kubernetes.io
  • Interested in hacking on the core Kubernetes code base? Keep reading!

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

Kubernetes is:

  • lean: lightweight, simple, accessible
  • portable: public, private, hybrid, multi cloud
  • extensible: modular, pluggable, hookable, composable
  • self-healing: auto-placement, auto-restart, auto-replication

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


Kubernetes can run anywhere!

However, initial development was done on GCE and so our instructions and scripts are built around that. If you make it work on other infrastructure please let us know and contribute instructions/code.

Kubernetes is in pre-production beta!

While the concepts and architecture in Kubernetes represent years of experience designing and building large scale cluster manager at Google, the Kubernetes project is still under heavy development. Expect bugs, design and API changes as we bring it to a stable, production product over the coming year.

Concepts

Kubernetes works with the following concepts:

Clusters are the compute resources on top of which your containers are built. Kubernetes can run anywhere! See the Getting Started Guides for instructions for a variety of services.

Pods are a colocated group of Docker containers with shared volumes. They're the smallest deployable units that can be created, scheduled, and managed with Kubernetes. Pods can be created individually, but it's recommended that you use a replication controller even if creating a single pod. More about pods.

Replication controllers manage the lifecycle of pods. They ensure that a specified number of pods are running at any given time, by creating or killing pods as required. More about replication controllers.

Services provide a single, stable name and address for a set of pods. They act as basic load balancers. More about services.

Labels are used to organize and select groups of objects based on key:value pairs. More about labels.

Documentation

Kubernetes documentation is organized into several categories.

  • Getting Started Guides
  • User Documentation
    • User FAQ
    • in docs
    • for people who want to run programs on kubernetes
    • describes current features of the system (with brief mentions of planned features)
  • Developer Documentation
    • in docs/devel
    • for people who want to contribute code to kubernetes
    • covers development conventions
    • explains current architecture and project plans
  • Service Documentation
    • in docs/services.md
    • Service FAQ
    • for people who are interested in how Services work
    • details of kube-proxy iptables
    • how to wire services to external internet
  • API documentation
    • in the API doc
    • and automatically generated API documentation served by the master
  • Design Documentation
    • in docs/design
    • for people who want to understand the design choices made
    • describes tradeoffs, alternative designs
    • descriptions of planned features that are too long for a github issue.
  • Walkthroughs and Examples
    • in examples
    • Hands on introduction and example config files
  • Wiki/FAQ

Community, discussion and support

If you have questions or want to start contributing please reach out. We don't bite!

The Kubernetes team is hanging out on IRC on the #google-containers channel on freenode.net. This client may be overloaded from time to time. If this happens you can use any IRC client out there to talk to us.

We also have the google-containers Google Groups mailing list for questions and discussion as well as the kubernetes-announce mailing list for important announcements (low-traffic, no chatter).

If you are a company and are looking for a more formal engagement with Google around Kubernetes and containers at Google as a whole, please fill out this form and we'll be in touch.