Production-Grade Container Scheduling and Management
Go to file
Antonio Ojea e3df13439a fix service allocation concurrency issues
The service allocator is used to allocate ip addresses for the
Service IP allocator and NodePorts for the Service NodePort
allocator. It uses a bitmap backed by etcd to store the allocation
and tries to allocate the resources directly from the local memory
instead from etcd, that can cause issues in environment with
high concurrency.

It may happen, in deployments with multiple apiservers, that the
resource allocation information is out of sync, this is more
sensible with NodePorts, per example:

1. apiserver A create a service with NodePort X
2. apiserver B deletes the service
3. apiserver A creates the service again

If the allocation data of apiserver A wasn't refreshed with the
deletion of apiserver B, apiserver A fails the allocation because
the data is out of sync. The Repair loops solve the problem later,
but there are some use cases that require to improve the concurrency
in the allocation logic.

We can try to not do the Allocation and Release operations locally,
and try instead to check if the local data is up to date with etcd,
and operate over the most recent version of the data.
2020-04-20 09:50:00 +02:00
.github Fix first contribution link in pr template 2020-04-03 17:27:05 -06:00
api Graduating ServiceAppProtocol to beta 2020-04-09 12:12:54 -07:00
build Merge pull request #90010 from deads2k/verify-beta 2020-04-16 04:54:47 -07:00
CHANGELOG CHANGELOG: Update directory for v1.18.2 release 2020-04-16 22:34:24 +00:00
cluster Fix shellcheck failure in cluster/gce/config-default.sh 2020-04-17 16:11:58 +09:00
cmd Merge pull request #88371 from dharmab/scheduler-synopsis 2020-04-17 13:15:36 -07:00
docs
Godeps Updating dependency github.com/fsnotify/fsnotify to version v1.4.9 2020-04-07 20:50:27 -04:00
hack Fix shellcheck failure in cluster/gce/config-default.sh 2020-04-17 16:11:58 +09:00
logo
pkg fix service allocation concurrency issues 2020-04-20 09:50:00 +02:00
plugin Merge pull request #82814 from porridge/patch-1 2020-04-14 06:20:13 -07:00
staging Merge pull request #90280 from gaurav1086/azure_lb_remove_unncessary_check 2020-04-19 18:05:38 -07:00
test fix service allocation concurrency issues 2020-04-20 09:50:00 +02:00
third_party Merge pull request #84904 from clarklee92/FixShellCheck 2020-04-06 19:09:58 -07:00
translations
vendor Merge pull request #90090 from nilo19/cleanup/use-mock-client-in-unit-tests 2020-04-13 10:16:02 -07:00
.bazelrc
.bazelversion
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod Merge pull request #89833 from liggitt/json-raw 2020-04-09 12:53:47 -07:00
go.sum Merge pull request #89833 from liggitt/json-raw 2020-04-09 12:53:47 -07:00
LICENSE
Makefile
Makefile.generated_files
OWNERS use OWNERS regex filtering mechanism to auto-label metrics changes 2020-04-17 11:17:10 -07:00
OWNERS_ALIASES Merge pull request #89835 from pwittrock/master 2020-04-16 11:47:08 -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