Production-Grade Container Scheduling and Management
Go to file
Michael Gasch 70c9f770d7 Add etcd WithRequireLeader option to API watches
Watches against etcd in the API server can hang forever if the etcd
cluster loses quorum, e.g. the majority of nodes crashes. This fix
improves responsiveness (detection and reaction time) of API server
watches against etcd in some rare (but still possible) edge cases so
that watches are terminated with `"etcdserver: no leader"
(ErrNoLeader)`.

Implementation behavior described by jingyih:

```
The etcd server waits until it cannot find a leader for 3 election
timeouts to cancel existing streams. 3 is currently a hard coded
constant. The election timeout defaults to 1000ms.

If the cluster is healthy, when the leader is stopped, the leadership
transfer should be smooth. (leader transfers its leadership before
stopping). If leader is hard killed, other servers will take an election
timeout to realize leader lost and start campaign.
```

For further details, discussion and validation see
https://github.com/kubernetes/kubernetes/issues/89488#issuecomment-606491110
and https://github.com/etcd-io/etcd/issues/8980.

Closes: https://github.com/kubernetes/kubernetes/issues/89488

Signed-off-by: Michael Gasch <mgasch@vmware.com>
2020-04-07 22:42:08 +02:00
.github Fix first contribution link in pr template 2020-04-03 17:27:05 -06:00
api Merge pull request #89704 from liggitt/gnostic 2020-04-03 14:19:46 -07:00
build Bumped debian-base from 2.0.0 to 2.0.1 2020-04-03 17:02:54 -07:00
CHANGELOG CHANGELOG: Update directory for v1.19.0-alpha.1 release 2020-03-26 03:34:54 +00:00
cluster Merge pull request #89759 from cheftako/master 2020-04-04 02:57:46 -07:00
cmd Merge pull request #89596 from neolit123/1.19-fix-misleading-warning-on-jcp 2020-04-03 04:27:45 -07:00
docs
Godeps Merge pull request #87926 from fedepaol/agnostsctp 2020-04-02 02:12:24 -07:00
hack Even with build error, kubectl apply should apply all valid resources 2020-04-04 15:48:31 -07:00
logo
pkg Merge pull request #89823 from gongguan/fix-89729 2020-04-04 17:57:46 -07:00
plugin Merge pull request #89696 from flant/service-account-volume-name-with-dot 2020-04-01 19:26:25 -07:00
staging Add etcd WithRequireLeader option to API watches 2020-04-07 22:42:08 +02:00
test Merge pull request #89848 from seans3/kubectl-apply-fix 2020-04-05 18:57:46 -07:00
third_party Merge pull request #83385 from daxmc99/docstring-change 2019-11-08 13:48:11 -08:00
translations update translation 2020-02-06 10:25:22 +09:00
vendor Merge pull request #89822 from jingyih/update_etcd_client_3p4p7 2020-04-05 15:15:46 -07: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 #89822 from jingyih/update_etcd_client_3p4p7 2020-04-05 15:15:46 -07:00
go.sum Merge pull request #89822 from jingyih/update_etcd_client_3p4p7 2020-04-05 15:15:46 -07:00
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Remove apelisse from dep-approvers 2020-03-27 09:45:30 -07: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