Production-Grade Container Scheduling and Management
Go to file
Patrick Ohly 27a68aee3a k8s.io/client-go/tools: support context for event recording
Using StartRecordingToSinkWithContext instead of StartRecordingToSink and
StartLogging instead of StartStructuredLogging has several advantages:

- Spawned goroutines no longer get stuck for extended periods of
  time during shutdown when passing in a context that gets canceled.
- Log output can be directed towards a specific logger instead of the global
  default, for example one which writes to a testing.T instance.
- The new methods return an error when something went wrong instead of
  merely recording the error.

That last point is the reason for deprecating the old methods instead of merely
adding new alternatives.

Setting a context when constructing an EventBroadcaster makes calling Shutdown
optional. It can also be used to specify the logger.

Both EventRecorder interfaces in tools/events and tools/record now have a
WithLogger helper. Using that method is optional, but recommended to support
contextual logging properly. Without it, errors that occur while emitting an
event are not associated with the caller.
2023-09-27 09:06:09 +02:00
.github
api apf: remove v1alpha1 API 2023-08-30 20:48:42 +08:00
build Merge pull request #120279 from BenTheElder/gotoolchain 2023-09-11 17:04:10 -07:00
CHANGELOG CHANGELOG: Update directory for v1.25.14 release 2023-09-13 20:44:24 +00:00
cluster [cluster/gce] Add KCM specific args 2023-09-08 11:12:05 +00:00
cmd Merge pull request #120514 from fengxsong/patch-1 2023-09-15 14:08:23 -07:00
docs
hack k8s.io/client-go/tools: support context for event recording 2023-09-27 09:06:09 +02:00
LICENSES New repo who dis? distribution/reference 2023-08-31 21:53:40 -04:00
logo
pkg Merge pull request #120434 from pohly/scheduler-backoff-metric-test 2023-09-18 03:00:31 -07:00
plugin api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
staging k8s.io/client-go/tools: support context for event recording 2023-09-27 09:06:09 +02:00
test remove gce healthcheck interval e2e lb test 2023-09-17 19:47:32 +00:00
third_party
vendor k8s.io/client-go/tools: support context for event recording 2023-09-27 09:06:09 +02:00
.generated_files
.gitattributes
.gitignore
.go-version [go] Bump images, dependencies and versions to go 1.21.1 2023-09-07 14:56:56 +02:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod go.mod 2023-09-15 15:42:12 +02:00
go.sum hack/update-vendor.sh 2023-09-15 15:42:13 +02:00
LICENSE
Makefile
OWNERS
OWNERS_ALIASES sig-node: add rphillips to reviewers 2023-09-11 14:34:30 -05:00
README.md
SECURITY_CONTACTS
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.