Production-Grade Container Scheduling and Management
Go to file
Lubomir I. Ivanov c29450eb00 kubeadm: apply retries to all API calls in idempotency.go
The idempotency.go (perhaps not so accurately named) contains
API calls that kubeadm does against an API server using client-go.

Some users seem to have unstable setups where for unknown reasons
the API server can be unavailable or refuse to respond as expected.

Use PollUntilContextTimeout in all exported functions to ensure
such API calls are all retry-able.

NOTE: The context passed to PollUntilContextTimeout is not propagated
in the polled function. Instead the poll function creates it's own
context 'ctx := context.Background()', this is to avoid
breaking expectations on the side of the callers, that expect
a certain type of error and not "context timeout" errors.

Additional changes:
- Make all context.TODO() -> context.Background()
- Update all unit tests and make sure during testing the retry
interval and timeout are short. Test coverage of idempotency.go
is at ~97%.
- Remove the TestMutateConfigMapWithConflict test. It does not
contribute much, because conflict handling is done at the API,
server side, not on the side of kubeadm. This simulating this is not
needed.
2024-02-18 13:14:32 +02:00
.github Add new contribex leads to sig-contribex-approvers 2023-04-10 12:34:03 +05:30
api Merge pull request #122472 from pacoxu/flowcontrolv1 2024-02-12 13:17:48 -08:00
build update images to have the full semver in the tag 2024-02-13 14:04:29 +01:00
CHANGELOG CHANGELOG: Update directory for v1.30.0-alpha.1 release 2024-01-31 19:48:10 +00:00
cluster etcd: Update to version 3.5.12 2024-02-07 21:16:08 +08:00
cmd kubeadm: apply retries to all API calls in idempotency.go 2024-02-18 13:14:32 +02:00
docs Make root approval non-recursive 2022-10-10 08:26:53 -04:00
hack Merge pull request #122612 from mtardy/remove-scdeny 2024-02-12 08:37:13 -08:00
LICENSES Merge pull request #121486 from benluddy/cbor-stub 2024-02-09 14:42:05 -08:00
logo logo: better alignment of layers 2022-10-19 12:17:25 -07:00
pkg Merge pull request #122472 from pacoxu/flowcontrolv1 2024-02-12 13:17:48 -08:00
plugin Merge pull request #122612 from mtardy/remove-scdeny 2024-02-12 08:37:13 -08:00
staging Merge pull request #122152 from pohly/client-go-event-context-fix 2024-02-12 06:48:06 -08:00
test remove --v arg from kubetest2-tester-ginkgo test args 2024-02-13 00:02:49 +00:00
third_party Bump shellcheck to 0.9.0 2024-01-26 16:26:40 -08:00
vendor Merge pull request #121486 from benluddy/cbor-stub 2024-02-09 14:42:05 -08:00
.generated_files remove clearly unnecessary lingering BUILD file references 2022-10-04 16:47:25 -07:00
.gitattributes gitattributes: json and yaml files LF line endings 2022-12-22 11:36:07 +00:00
.gitignore add rundir folder to gitignore 2023-10-12 21:54:59 +01:00
.go-version use patch number 2024-02-09 14:47:56 +01:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod Merge pull request #121486 from benluddy/cbor-stub 2024-02-09 14:42:05 -08:00
go.sum Merge pull request #121486 from benluddy/cbor-stub 2024-02-09 14:42:05 -08:00
LICENSE
Makefile
OWNERS Add sig-architecture-approvers and dep-approvers to root dir 2022-10-10 13:43:04 -04:00
OWNERS_ALIASES add aojea as feature-approvers on OWNER_ALIASES 2024-02-08 13:19:32 +00:00
README.md use the latest semver version for the badge 2023-10-24 15:30:17 -04:00
SECURITY_CONTACTS Update SECURITY_CONTACTS 2023-10-10 14:45:43 +00:00
SUPPORT.md

Kubernetes (K8s)

CII Best Practices Go Report Card GitHub release (latest SemVer)


Kubernetes, also known as K8s, is an open source system for managing containerized applications across multiple hosts. It provides basic mechanisms for the 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 K8s

See our documentation on kubernetes.io.

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 K8s

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.

Community Meetings

The Calendar has the list of all the meetings in the Kubernetes community in a single location.

Adopters

The User Case Studies website has real-world use cases of organizations across industries that are deploying/migrating to Kubernetes.

Governance

Kubernetes project is governed by a framework of principles, values, policies and processes to help our community and constituents towards our shared goals.

The Kubernetes Community is the launching point for learning about how we organize ourselves.

The Kubernetes Steering community repo is used by the Kubernetes Steering Committee, which oversees governance of the Kubernetes project.

Roadmap

The Kubernetes Enhancements repo provides information about Kubernetes releases, as well as feature tracking and backlogs.