Production-Grade Container Scheduling and Management
Go to file
Patrick Ohly 1957fb6508 command lines: harmonize command line parse error handling
The recommendation from #sig-cli was to print usage, then the error. Extra care
is taken to only print the usage instruction when the error really was about
flag parsing.

Taking kube-scheduler as example:

  $ _output/bin/kube-scheduler
  I0929 09:42:42.289039  149029 serving.go:348] Generated self-signed cert in-memory
  ...
  W0929 09:42:42.489255  149029 client_config.go:620] error creating inClusterConfig, falling back to default config: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
  E0929 09:42:42.489366  149029 run.go:98] "command failed" err="invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"

  $ _output/bin/kube-scheduler --xxx
  Usage:
    kube-scheduler [flags]

  ...
       --vmodule moduleSpec
                  comma-separated list of pattern=N settings for file-filtered logging

  Error: unknown flag: --xxx

The kubectl behavior doesn't change:

  $ _output/bin/kubectl get nodes
  Unable to connect to the server: dial tcp: lookup xxxx: No address associated with hostname

  $ _output/bin/kubectl --xxx
  Error: unknown flag: --xxx
  See 'kubectl --help' for usage.
2021-09-30 13:46:49 +02:00
.github adding sig info to test issue templates 2021-09-22 12:41:15 +05:30
api move IPv6DualStack feature to stable. (#104691) 2021-09-24 16:30:22 -07:00
build Merge pull request #105158 from justaugustus/its-a-bullseye 2021-09-26 23:14:23 -07:00
CHANGELOG Improve formatting in CHANGELOGs 2021-09-17 10:07:14 +03:00
cluster Revert "Use docker buildx for etcd image" 2021-09-27 10:46:17 -07:00
cmd command lines: harmonize command line parse error handling 2021-09-30 13:46:49 +02:00
docs
hack Merge pull request #105171 from liggitt/gomodule-staticcheck 2021-09-21 10:34:23 -07:00
LICENSES klog 2.20.0, logr v1.1.0, zapr v1.1.0 2021-09-09 14:43:43 +02:00
logo
pkg command lines: always show flags with hyphens 2021-09-30 13:46:49 +02:00
plugin PodSecurity: add admission benchmark 2021-09-21 16:20:11 -04:00
staging command lines: harmonize command line parse error handling 2021-09-30 13:46:49 +02:00
test command lines: harmonize command line parse error handling 2021-09-30 13:46:49 +02:00
third_party Copy golang license to staging copies 2021-08-10 17:37:28 -04:00
vendor initialize logging after flag parsing 2021-09-30 13:46:49 +02:00
.generated_files
.gitattributes
.gitignore
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md
go.mod Updated vendor files and pinned versions 2021-09-13 15:42:42 +05:30
go.sum Updated vendor files and pinned versions 2021-09-13 15:42:42 +05:30
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES storage: update OWNERS and ALIASES 2021-09-13 07:54:25 +02:00
README.md
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.