Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 8220171d8a
Merge pull request #63492 from liggitt/node-heartbeat-close-connections
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>.

track/close kubelet->API connections on heartbeat failure

xref #48638
xref https://github.com/kubernetes-incubator/kube-aws/issues/598

we're already typically tracking kubelet -> API connections and have the ability to force close them as part of client cert rotation. if we do that tracking unconditionally, we gain the ability to also force close connections on heartbeat failure as well. it's a big hammer (means reestablishing pod watches, etc), but so is having all your pods evicted because you didn't heartbeat.

this intentionally does minimal refactoring/extraction of the cert connection tracking transport in case we want to backport this

* first commit unconditionally sets up the connection-tracking dialer, and moves all the cert management logic inside an if-block that gets skipped if no certificate manager is provided (view with whitespace ignored to see what actually changed)
* second commit plumbs the connection-closing function to the heartbeat loop and calls it on repeated failures

follow-ups:
* consider backporting this to 1.10, 1.9, 1.8
* refactor the connection managing dialer to not be so tightly bound to the client certificate management

/sig node
/sig api-machinery

```release-note
kubelet: fix hangs in updating Node status after network interruptions/changes between the kubelet and API server
```
2018-05-14 16:56:35 -07:00
.github modify outdate link 2018-05-03 09:23:36 +08:00
api Merge pull request #63100 from ravisantoshgudimetla/priority-beta-api 2018-05-14 14:35:21 -07:00
build Basic E2E tests for kubeadm 2018-05-10 12:54:25 -04:00
cluster Move uncordon to after the node is ready 2018-05-11 09:57:04 -07:00
cmd Merge pull request #63492 from liggitt/node-heartbeat-close-connections 2018-05-14 16:56:35 -07:00
docs Merge pull request #63100 from ravisantoshgudimetla/priority-beta-api 2018-05-14 14:35:21 -07:00
Godeps Bump kube-openapi dependency 2018-05-08 17:26:51 -07:00
hack Merge pull request #63769 from liggitt/kubectl-taint-internal-object 2018-05-14 14:35:24 -07:00
logo
pkg Merge pull request #63492 from liggitt/node-heartbeat-close-connections 2018-05-14 16:56:35 -07:00
plugin Revert "authz: nodes should not be able to delete themselves" 2018-05-11 09:37:21 -04:00
staging Merge pull request #63100 from ravisantoshgudimetla/priority-beta-api 2018-05-14 14:35:21 -07:00
test Merge pull request #63100 from ravisantoshgudimetla/priority-beta-api 2018-05-14 14:35:21 -07:00
third_party
translations Adds initial Korean translations for kubectl 2018-05-12 11:16:49 +09:00
vendor generated 2018-05-08 17:36:05 -07: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 Update CHANGELOG-1.11.md for v1.11.0-alpha.2. 2018-05-02 15:47:30 +00:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES
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