kubelet component configs
Go to file
Patrick Ohly 2902dcb6e5 component-base: configurable JSON output
This implements the replacement of klog output to different files per level
with optionally splitting JSON output into two streams: one for info messages
on stdout, one for error messages on stderr. The info messages can get buffered
to increase performance. Because stdout and stderr might be merged by the
consumer, the info stream gets flushed before writing an error, to ensure that
the order of messages is preserved.

This also ensures that the following code pattern doesn't leak info messages:
   klog.ErrorS(err, ...)
   os.Exit(1)

Commands explicitly have to flush before exiting via logs.FlushLogs. Most
already do. But buffered info messages can still get lost during an unexpected
program termination, therefore buffering is off by default.

The new options get added to the v1alpha1 LoggingConfiguration with new command
line flags. Because it is an alpha field, changing it inside the v1beta kubelet
config should be okay as long as the fields are clearly marked as alpha.

Kubernetes-commit: b22263d8351e873961aeff5d065faf3443de9acb
2021-09-10 18:02:23 +02:00
.github Add skeleton new repo files 2018-09-02 14:23:12 +03:00
config component-base: configurable JSON output 2021-09-10 18:02:23 +02:00
pkg/apis generated: Run hack/update-gofmt.sh 2021-08-12 17:13:11 -04:00
CONTRIBUTING.md Update deprecated links 2019-02-04 13:28:31 -05:00
LICENSE Add skeleton new repo files 2018-09-02 14:23:12 +03:00
OWNERS Updated OWNERS files to include link to docs 2019-01-30 20:05:00 +01:00
README.md Modify the kubelet document url 2021-04-30 11:30:07 +08:00
SECURITY_CONTACTS Update SECURITY_CONTACTS with current PSC 2019-05-29 15:22:35 +05:30
code-of-conduct.md Add skeleton new repo files 2018-09-02 14:23:12 +03:00
doc.go Make package paths referenced by import boss valid 2021-09-28 13:06:39 -04:00
go.mod Merge pull request #105222 from cyclinder/remove_node_lease_GA 2021-10-05 17:00:30 +00:00
go.sum Merge pull request #105222 from cyclinder/remove_node_lease_GA 2021-10-05 17:00:30 +00:00

README.md

kubelet

Implements KEP 14 - Moving ComponentConfig API types to staging repos

This repo provides external, versioned ComponentConfig API types for configuring the kubelet. These external types can easily be vendored and used by any third-party tool writing Kubernetes ComponentConfig objects.

Compatibility

HEAD of this repo will match HEAD of k8s.io/apiserver, k8s.io/apimachinery, and k8s.io/client-go.

Where does it come from?

This repo is synced from https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/kubelet. Code changes are made in that location, merged into k8s.io/kubernetes and later synced here by a bot.