Production-Grade Container Scheduling and Management
Go to file
Patrick Ohly e3c584030c k8s.io/apimachinery: add HandleCrashWithLogger and HandleErrorWithLogger
There are situations where it makes more sense to pass a logger through a
call chain, primarily because passing a context would imply that the call chain
should honor cancellation even though there is a different shutdown mechanism.

Using the *WithContext variants would cause additional overhead for
klog.NewContext, which hurts in particular for HandleCrash because that
function is typically a nop that doesn't actually need to log
anything. HandleCrashWithLogger avoids that overhead.

For HandleError that is less relevant because it always logs, but for the sake
of symmetry it also gets added.

Putting klog.Logger (= logr.Logger) into the public Kubernetes Go API is okay
because it's no longer realistic that these packages can ever drop the klog
dependency. Callers using slog as logger in their binary can use
https://github.com/veqryn/slog-context to store a slog.Logger in a context and
then call the *WithContext variants, klog.FromContext will be able to use it.
This is probably very rare, so there's no need for *WithSlog variants.

While at it, unit testing gets enhanced and logging in panic handlers gets
improved such that they are guaranteed to get a saner location when not
doing any caller skipping. Previously, this was undefined.
2024-12-12 09:29:03 +01:00
.github
api Merge pull request #128407 from ndixita/pod-level-resources 2024-11-08 07:10:50 +00:00
build Bump images, dependencies and versions to go 1.23.3 and distroless iptables 2024-11-19 09:57:41 +01:00
CHANGELOG CHANGELOG: Update directory for v1.32.0-rc.0 release 2024-11-26 16:47:58 +00:00
cluster Merge pull request #126798 from borg-land/easy-rsa-patch 2024-10-28 19:02:53 +00:00
cmd Merge pull request #128763 from srivastav-abhishek/fix-err-string 2024-11-13 18:54:47 +00:00
docs
hack Merge pull request #128834 from pohly/scheduler-perf-pass-workaround 2024-11-21 16:08:55 +00:00
LICENSES vendoring changes for new hnslib v0.0.8. 2024-11-18 23:30:50 +05:30
logo
pkg Merge pull request #128932 from pohly/dra-node-selector-validation 2024-11-22 20:22:55 +00:00
plugin Merge pull request #128407 from ndixita/pod-level-resources 2024-11-08 07:10:50 +00:00
staging k8s.io/apimachinery: add HandleCrashWithLogger and HandleErrorWithLogger 2024-12-12 09:29:03 +01:00
test Merge pull request #128966 from liggitt/deflake-external 2024-11-25 19:18:59 +00:00
third_party Merge pull request #128506 from kolyshkin/cgroups-nit 2024-11-08 02:21:34 +00:00
vendor vendoring changes for new hnslib v0.0.8. 2024-11-18 23:30:50 +05:30
.generated_files
.gitattributes Mark api/openapi-spec/**/*.json as generated files 2024-10-28 13:33:50 -07:00
.gitignore
.go-version Bump images, dependencies and versions to go 1.23.3 and distroless iptables 2024-11-19 09:57:41 +01:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod vendoring changes for new hnslib v0.0.8. 2024-11-18 23:30:50 +05:30
go.sum vendoring changes for new hnslib v0.0.8. 2024-11-18 23:30:50 +05:30
go.work Add plugin and key-cache for ExternalJWTSigner integration 2024-11-07 03:16:23 +00:00
go.work.sum vendoring changes for new hnslib v0.0.8. 2024-11-18 23:30:50 +05:30
LICENSE
Makefile
OWNERS
OWNERS_ALIASES Merge pull request #128127 from macsko/add_macsko_to_sig_scheduling_reviewers 2024-10-24 03:34:52 +01: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.
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.