Lightweight Kubernetes
 
 
 
 
Go to file
Rostislav M. Georgiev f73ac0da3e kubeadm: Replace MigrateOldConfigFromFile
MigrateOldConfigFromFile is a function, whose purpose is to migrate one config
into another. It is working OK for now, but it has some issues:

- It is incredibly inefficient. It can reload and re-parse a single config file
  for up to 3 times.

- Because of the reloads, it has to take a file containing the configuration
  (not a byte slice as most of the rest config functions). However, it returns
  the migrated config in a byte slice (rather asymmetric from the input
  method).

- Due to the above points it's difficult to implement a proper interface for
  deprecated kubeadm config versions.

To fix the issues of MigrateOldConfigFromFile, the following is done:

- Re-implement the function by removing the calls to file loading package
  public APIs and replacing them with newly extracted package private APIs that
  do the job with pre-provided input data in the form of
  map[GroupVersionKind][]byte.

- Take a byte slice of the input configuration as an argument. This makes the
  function input symmetric to its output. Also, it's now renamed to
  MigrateOldConfig to represent the change from config file path as an input
  to byte slice.

- As a bonus (actually forgotten from a previous change) BytesToInternalConfig
  is renamed to the more descriptive BytesToInitConfiguration.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-02-14 11:52:33 +02:00
.github Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Godeps Merge pull request #73941 from neolit123/update-go-difflib 2019-02-12 17:29:29 -08:00
api Fixes Golint Errors: staging/src/k8s.io/kube-aggregator (#73369) 2019-02-11 14:16:05 -08:00
build Merge pull request #73033 from Liujingfang1/kustomizeSubcommand 2019-02-12 15:10:36 -08:00
cluster Merge pull request #74001 from mm4tt/logexporter_version_bump 2019-02-13 04:18:38 -08:00
cmd kubeadm: Replace MigrateOldConfigFromFile 2019-02-14 11:52:33 +02:00
docs Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
hack Merge pull request #73978 from oomichi/golint-e2e-framework-timer 2019-02-12 17:29:43 -08:00
logo Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
pkg Merge pull request #74004 from mm4tt/kube-proxy-log 2019-02-13 03:05:39 -08:00
plugin remove cloud provider dependencies to pkg/volume 2019-02-09 01:16:55 -05:00
staging Merge pull request #73953 from sttts/sttts-simplify-kube-aggregator-openapi 2019-02-13 07:18:42 -08:00
test Merge pull request #73900 from cofyc/fix-local-test 2019-02-12 20:01:57 -08:00
third_party Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
translations Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
vendor Merge pull request #73941 from neolit123/update-go-difflib 2019-02-12 17:29:29 -08:00
.bazelrc move build related files out of the root directory 2017-05-15 15:53:54 -07:00
.generated_files generated_files: remove line about /docs/.generated_docs 2019-02-11 02:54:45 +02:00
.gitattributes Remove build/verify scripts for swagger 1.2 API docs, API server swagger ui / swagger 1.2 config 2019-01-15 13:33:06 -05:00
.gitignore git ignore vendordiff.patch to avoid accidental checkin 2018-10-30 18:49:53 -04:00
.kazelcfg.json Switch from gazel to kazel, and move kazelcfg into build/root 2017-07-18 12:48:51 -07:00
BUILD.bazel move build related files out of the root directory 2017-05-15 15:53:54 -07:00
CHANGELOG-1.2.md Update TOC of CHANGELOG 2017-09-09 13:38:29 +08:00
CHANGELOG-1.3.md from #61246 note removed examples and regression for master 2018-08-14 14:54:05 -05:00
CHANGELOG-1.4.md replace features to enhancements 2018-12-12 11:37:21 +08:00
CHANGELOG-1.5.md replace features to enhancements 2018-12-12 11:37:21 +08:00
CHANGELOG-1.6.md replace features to enhancements 2018-12-12 11:37:21 +08:00
CHANGELOG-1.7.md replace features to enhancements 2018-12-12 11:37:21 +08:00
CHANGELOG-1.8.md replace features to enhancements 2018-12-12 11:37:21 +08:00
CHANGELOG-1.9.md Fix some types 2018-10-31 04:05:25 -04:00
CHANGELOG-1.10.md Update CHANGELOG-1.10.md for v1.10.13. 2019-02-13 12:39:38 +00:00
CHANGELOG-1.11.md Merge pull request #71310 from xiezongzhe/patch-3 2019-01-25 18:32:01 -08:00
CHANGELOG-1.12.md Update CHANGELOG-1.12.md for v1.12.5. 2019-01-17 17:32:06 +00:00
CHANGELOG-1.13.md Update CHANGELOG-1.13.md for v1.13.3. 2019-02-01 21:06:28 +00:00
CHANGELOG-1.14.md Update CHANGELOG-1.14.md for v1.14.0-alpha.3. 2019-02-12 10:56:09 +00:00
CHANGELOG.md Updated a link to the latest changelog 2018-12-28 15:05:09 +13:00
CONTRIBUTING.md Pointed to community/contributors/guide/README.md 2017-12-15 22:08:34 +05:30
LICENSE LICENSE: revert modifications to Apache license 2016-11-22 11:44:46 -08:00
Makefile move build related files out of the root directory 2017-05-15 15:53:54 -07:00
Makefile.generated_files move build related files out of the root directory 2017-05-15 15:53:54 -07:00
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
OWNERS_ALIASES Add wgliang to sig-scheduling REVIEWERS. 2019-01-21 13:41:14 +08:00
README.md remove submit-queue from readme 2018-09-13 17:10:35 -07:00
SECURITY_CONTACTS add PST to main SECURITY_CONTACTS as formality 2018-05-24 10:52:33 -04:00
SUPPORT.md Clean up support doc resources 2018-09-19 07:15:43 -07:00
WORKSPACE move build related files out of the root directory 2017-05-15 15:53:54 -07:00
code-of-conduct.md Update code-of-conduct.md 2017-12-20 13:33:36 -05:00

README.md

Kubernetes

GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts; providing 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 you are a company that 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 Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

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.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/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.

Analytics