Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 7e31e70ab9 Merge pull request #54019 from jiayingz/lifecycle
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Move device plugin related code to pkg/kubelet/cm/deviceplugin/.

**What this PR does / why we need it**:
Move device plugin related code to pkg/kubelet/cm/deviceplugin/.
Inspired by PR 53258 proposed by @dolftax. The code structure looks much cleaner this way and it also makes future code refactoring easier.
While moving device_plugin_handler_test.go from pkg/kubelet/cm/ to pkg/kubelet/cm/deviceplugin/, we can no longer uses cm in its tests because that would cause a cycle dependency. To solve this problem, I moved the main cm GetResources functionality as well as part of the current device plugin handler Allocate functionality into a new device plugin handler function, GetDeviceRunContainerOptions(). This refactoring is also needed by another PR 51895 that moves device allocation into admission phase. Now device plugin handler Allocate() first checks whether there is cached device runtime state and only issues Allocate grpc call if there is no cached state available. The new GetDeviceRunContainerOptions() function simply returns device runtime config from the cached state. To support this change, extended the podDevices struct and checkpoint data structure with device runtime state.

We expect to clean up device plugin interface in follow up PRs. Currently both device plugin handler interface and manager interface are public. This is no longer necessary after this PR given that their code now live in the same package. We should clean up unnecessary public interfaces and functions, and/or consider to merge handler and manager code into a single layer.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:
Part of https://github.com/kubernetes/kubernetes/issues/53170 but not fixes it.

**Release note**:

```release-note
```
2017-10-25 14:18:12 -07:00
.github
api Merge pull request #54302 from sbezverk/refactor_rbd_volume 2017-10-24 08:35:11 -07:00
build Merge pull request #54573 from luxas/luxas-kubeadm-cni-fix 2017-10-25 10:44:04 -07:00
cluster Merge pull request #52868 from ihmccreery/node-service-account 2017-10-25 12:32:13 -07:00
cmd Merge pull request #54416 from lioncruise/patch-1 2017-10-25 08:03:29 -07:00
docs Merge pull request #53920 from apelisse/diff 2017-10-24 21:38:23 -07:00
examples Merge pull request #51310 from xiangpengzhao/sc-eg 2017-10-18 20:31:15 -07:00
federation Amend the error messages in install_test.go 2017-10-24 16:42:27 +08:00
Godeps Revert "update gRPC to pick up data race fix" 2017-10-23 13:23:48 +02:00
hack hack: rename verify-{staging- -> }imports.sh 2017-10-25 13:31:56 +02:00
logo Don't use strokes in the logo SVG 2017-10-12 09:38:56 -07:00
pkg Merge pull request #54019 from jiayingz/lifecycle 2017-10-25 14:18:12 -07:00
plugin Autogenerated files 2017-10-24 16:04:58 -07:00
staging sample-apiserver: add docs 2017-10-26 00:54:30 +05:30
test Merge pull request #54207 from jeffvance/pd-eviction 2017-10-25 12:32:22 -07:00
third_party Merge pull request #47699 from supereagle/fix-typos 2017-10-17 02:35:52 -07:00
translations Merge pull request #51463 from lucab85/i18n-Italian 2017-09-23 04:02:51 -07:00
vendor Revert "update gRPC to pick up data race fix" 2017-10-23 13:23:48 +02:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md
CHANGELOG-1.5.md Regenerate CHANGELOG TOCs 2017-10-11 17:04:47 -04:00
CHANGELOG-1.6.md Update CHANGELOG-1.6.md for v1.6.12. 2017-10-25 12:39:47 -07:00
CHANGELOG-1.7.md Update CHANGELOG-1.7.md for v1.7.9. 2017-10-19 12:23:54 -07:00
CHANGELOG-1.8.md Update CHANGELOG-1.8.md for v1.8.2. 2017-10-24 13:43:46 -07:00
CHANGELOG-1.9.md Regenerate CHANGELOG TOCs 2017-10-11 17:04:47 -04:00
CHANGELOG.md Move 1.8.x release notes 2017-10-11 22:41:36 -04:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Merge pull request #52108 from cmluciano/cml/addcmlucianomilestone 2017-09-23 07:14:00 -07:00
README.md
SUPPORT.md
Vagrantfile
WORKSPACE

Kubernetes

Submit Queue Widget 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

If you are less impatient, 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