Production-Grade Container Scheduling and Management
Go to file
Clayton Coleman c6b833ac3c service: fix IPFamily validation and defaulting problems
If the dual-stack flag is enabled and the cluster is single stack IPv6,
the allocator logic for service clusterIP does not properly handle rejecting
a request for an IPv4 family. Return a 422 Invalid on the ipFamily field
when the dual stack flag is on (as it would when it hits beta) and the
cluster is configured for single-stack IPv6.

The family is now defaulted or cleared in BeforeCreate/BeforeUpdate,
and is either inherited from the previous object (if nil or unchanged),
or set to the default strategy's family as necessary. The existing
family defaulting when cluster ip is provided remains in the api
section. We add additonal family defaulting at the time we allocate
the IP to ensure that IPFamily is a consequence of the ClusterIP
and prevent accidental reversion. This defaulting also ensures that
old clients that submit a nil IPFamily for non ClusterIP services
receive a default.

To properly handle validation, make the strategy and the validation code
path condition on which configuration options are passed to service
storage. Move validation and preparation logic inside the strategy where
it belongs. Service validation is now dependent on the configuration of
the server, and as such ValidateConditionService needs to know what the
allowed families are.
2020-05-23 11:08:19 -04:00
.github
api update EnvVarSource doc 2020-05-18 23:37:30 +08:00
build Switch kube-controller-manager to distroless image 2020-05-21 22:33:54 -04:00
CHANGELOG CHANGELOG: Update directory for v1.16.10 release 2020-05-20 17:20:22 +00:00
cluster Merge pull request #91329 from dims/switch-kube-controller-manager-to-distroless-image 2020-05-22 17:23:10 -07:00
cmd Restrict service account token metrics to kube-apiserver only. 2020-05-21 15:34:57 -07:00
docs
hack fix import restrictions and BUILD 2020-05-20 10:57:47 -04:00
LICENSES Pin transitive dependencies: 2020-05-19 09:38:29 +08:00
logo
pkg service: fix IPFamily validation and defaulting problems 2020-05-23 11:08:19 -04:00
plugin Merge pull request #91315 from jherrera123/master 2020-05-22 10:45:11 -07:00
staging Merge pull request #91260 from wojtek-t/dont_use_watchcache_capacity 2020-05-22 08:06:37 -07:00
test Merge pull request #91329 from dims/switch-kube-controller-manager-to-distroless-image 2020-05-22 17:23:10 -07:00
third_party
translations
vendor Merge pull request #90649 from cici37/leaderelectionconfig 2020-05-20 19:40:47 -07:00
.bazelrc
.bazelversion
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod Switch to static bash for etcd 2020-05-19 17:05:24 -04:00
go.sum Pin transitive dependencies: 2020-05-19 09:38:29 +08:00
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES
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