Production-Grade Container Scheduling and Management
Go to file
Clayton Coleman 64c669bd0a
Add type logging to certificate manager
Kubelet cert rotation involves two certificate manager instances
(one for client and one for server certs) and the log lines are
identical and confusing. Since certificate manager is a utility
library it is also inappropriate to simply assume klog output is
sufficient.

certificate.Manager now accepts a Name and Logf function on its
config struct to identify the purpose of the manager and to
provide a way to redirect where output should go. If Name is
absent, the name is defaulted from the SignerName, and if that
is not found then the name is set to "client auth" if that is
a provided key usage, or "certificate" otherwise. If Logf is
not provided it defaults to klog.V(2). as today. The name is printed
in "foo: bar" form on every line, but can be converted to structured
logging in the future. The log level is not customizable and it
is up to the caller to decide whether that is an issue.

Some log messages are slightly cleaned up to more clearly indicate
their intent. One log message is removed in a utility function that
was already at v(4) and less likely to be needed.

The default behavior of the certificate manager is as before and
the kubelet now identifies the server and client signerName as
separate entities:

I0414 19:07:33.590419    1539 certificate_manager.go:263] kubernetes.io/kube-apiserver-client-kubelet: Rotating certificates
E0414 19:07:33.594154    1539 certificate_manager.go:464] kubernetes.io/kube-apiserver-client-kubelet: Failed while requesting a signed certificate from the master: cannot create certificate signing request: Post "https://...
2021-04-19 22:10:36 -04:00
.github .github: update enhancement issue template to point to KEPs 2021-02-24 16:03:40 +05:30
api Generated code 2021-04-16 14:24:19 -07:00
build Merge pull request #101100 from springasa/springasa-patch-1 2021-04-18 11:16:35 -07:00
CHANGELOG CHANGELOG: Update directory for v1.18.18 release 2021-04-15 05:32:38 +00:00
cluster Merge pull request #101238 from loburm/move_deprecated 2021-04-19 08:02:36 -07:00
cmd Merge pull request #101178 from dcwbq/delete_kubeletHTTPS_flag 2021-04-16 10:02:42 -07:00
docs hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
hack Merge pull request #100205 from mauriciopoppe/enable-delve-in-e2e-tests 2021-04-14 17:15:49 -07:00
LICENSES vendor: cadvisor v0.39.0 2021-03-08 22:10:29 -08:00
logo Create colors.md 2021-01-15 22:15:43 -08:00
pkg Merge pull request #99448 from JornShen/use_exist_utils_nets_replace_parseExcludedCIDRs 2021-04-17 19:32:36 -07:00
plugin Add endpointslices to default edit & view RBAC policies 2021-04-16 13:43:32 -07:00
staging Add type logging to certificate manager 2021-04-19 22:10:36 -04:00
test Merge pull request #101211 from aojea/nosnat 2021-04-17 10:32:34 -07:00
third_party remove unused third_party/intemp 2021-03-08 21:17:37 -08:00
translations hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
vendor Upgrade kustomize-in-kubectl to v4.1.2 2021-04-15 14:19:03 -07:00
.generated_files
.gitattributes
.gitignore Rename _examples to examples 2021-01-25 10:20:46 -08:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md Remove stale analytics links from docs 2020-11-18 07:04:48 -06:00
go.mod Upgrade kustomize-in-kubectl to v4.1.2 2021-04-15 14:19:03 -07:00
go.sum Upgrade kustomize-in-kubectl to v4.1.2 2021-04-15 14:19:03 -07:00
LICENSE
Makefile
Makefile.generated_files
OWNERS Move brendandburns to to emeritus status. 2020-08-27 10:20:56 -04:00
OWNERS_ALIASES Merge pull request #100885 from enj/enj/i/auth_owners 2021-04-12 22:18:49 -07:00
README.md Update godoc reference widget to pkg.go.dev 2021-01-26 09:34:07 -05:00
SECURITY_CONTACTS
SUPPORT.md

Kubernetes (K8s)

GoPkg Widget CII Best Practices


Kubernetes, also known as K8s, 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 K8s

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 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.