Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 3adb9b428b Merge pull request #46660 from jackfrancis/azure-cloudprovider-backoff
Automatic merge from submit-queue (batch tested with PRs 43005, 46660, 46385, 46991, 47103)

Azure cloudprovider retry using flowcontrol

An initial attempt at engaging exponential backoff for API error responses.

Addresses #47048

Uses k8s.io/client-go/util/flowcontrol; implementation inspired by GCE
cloudprovider backoff.



**What this PR does / why we need it**:

The existing azure cloudprovider implementation has no guard rails in place to adapt to unexpected underlying operational conditions (i.e., clogs in resource plumbing between k8s runtime and the cloud API). The purpose of these changes is to support exponential backoff wrapping around API calls; and to support targeted rate limiting. Both of these options are configurable via `--cloud-config`.

Implementation inspired by the GCE's use of `k8s.io/client-go/util/flowcontrol` and `k8s.io/apimachinery/pkg/util/wait`, this PR likewise uses `flowcontrol` for rate limiting; and `wait` to thinly wrap backoff retry attempts to the API.

**Special notes for your reviewer**:


Pay especial note to the declaration of retry-able conditions from an unsuccessful HTTP request:
- all `4xx` and `5xx` HTTP responses
- non-nil error responses

And the declaration of retry success conditions:
- `2xx` HTTP responses

Tests updated to include additions to `Config`.

Those may be incomplete, or in other ways non-representative.

**Release note**:

```release-note
Added exponential backoff to Azure cloudprovider
```
2017-06-07 13:30:58 -07:00
.github Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
api Auto generated code for StatefulSet update 2017-06-06 13:47:19 -07:00
build bazel: base kube-proxy image on debian-iptables instead of busybox 2017-06-01 19:27:15 -07:00
cluster Merge pull request #47083 from mikedanese/restart-fix 2017-06-06 18:25:10 -07:00
cmd Merge pull request #43005 from cmluciano/cml/consolidatesysctl 2017-06-07 13:30:54 -07:00
docs Auto generated code for StatefulSet update 2017-06-06 13:47:19 -07:00
examples Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
federation Merge pull request #44786 from tsandall/f8n-scheduling-policy 2017-06-07 00:27:47 -07:00
Godeps Merge pull request #46816 from dashpole/update_godep 2017-06-05 16:43:43 -07:00
hack Merge pull request #47088 from mikedanese/integration-race 2017-06-07 11:04:57 -07:00
hooks
logo
pkg Merge pull request #46660 from jackfrancis/azure-cloudprovider-backoff 2017-06-07 13:30:58 -07:00
plugin Merge pull request #46669 from kow3ns/statefulset-update 2017-06-07 00:27:53 -07:00
staging Merge pull request #46669 from kow3ns/statefulset-update 2017-06-07 00:27:53 -07:00
test Merge pull request #46120 from shashidharatd/federation-service-e2e-1 2017-06-07 09:13:04 -07:00
third_party gonum: slice-based edge holder 2017-05-30 15:12:30 -04:00
translations Merge pull request #46756 from girikuncoro/japanese-translate 2017-06-07 00:27:51 -07:00
vendor Rename {kube- ->}apiextensions-{-> api}server 2017-06-06 12:06:31 +02:00
.bazelrc move build related files out of the root directory 2017-05-15 15:53:54 -07:00
.gazelcfg.json
.generated_files
.gitattributes
.gitignore
BUILD.bazel move build related files out of the root directory 2017-05-15 15:53:54 -07:00
CHANGELOG.md Merge pull request #45327 from zhangxiaoyu-zidif/first-letter-to-be-caps 2017-05-30 01:36:35 -07:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
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 Added sig leads alias to OWNERS_ALIAS 2017-06-01 09:43:03 -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